NamingContext.getNameIfPresent should not fail if name is missing 01/8201/1
authorMarek Gradzki <[email protected]>
Thu, 24 Aug 2017 11:08:49 +0000 (13:08 +0200)
committerMarek Gradzki <[email protected]>
Thu, 24 Aug 2017 11:51:30 +0000 (13:51 +0200)
commit31996a6707d75a5f87f7d8c89f563af74e32fe70
tree6f615c73e831cf459c0aeb71a8565d7973ae0aa3
parent26e7c2dcd0d1b1e5d9efb475eeb78effb897a731
NamingContext.getNameIfPresent should not fail if name is missing

Also makes InterfaceChangeNotificationProducer notification translation
code more defensive.

The issue was revealed by HC2VPP-216 and HC2VPP-220.

Change-Id: I20792a51743ae621d86c1b9066d680bc2303ed82
Signed-off-by: Marek Gradzki <[email protected]>
v3po/v3po2vpp/src/main/java/io/fd/hc2vpp/v3po/notification/InterfaceChangeNotificationProducer.java
vpp-common/vpp-translate-utils/src/main/java/io/fd/hc2vpp/common/translate/util/NamingContext.java
vpp-common/vpp-translate-utils/src/test/java/io/fd/hc2vpp/common/translate/util/NamingContextTest.java