Using nonNull API's in ELAN
[netvirt.git] / elanmanager / impl / src / main / java / org / opendaylight / netvirt / elan / l2gw / listeners / LocalUcastMacListener.java
index 380e59380661ba6797e80b269808e357fea98ac0..c0680d171caa1f3c317d2a4ec8fbdff426bba3e2 100644 (file)
@@ -250,8 +250,8 @@ public class LocalUcastMacListener extends ChildListener<Node, LocalUcastMacs, S
     private static Set<LocalUcastMacs> getMacs(@Nullable Node node) {
         if (node != null) {
             HwvtepGlobalAugmentation augmentation = node.augmentation(HwvtepGlobalAugmentation.class);
-            if (augmentation != null && augmentation.getLocalUcastMacs() != null) {
-                return new HashSet<>(augmentation.getLocalUcastMacs().values());
+            if (augmentation != null && augmentation.nonnullLocalUcastMacs() != null) {
+                return new HashSet<>(augmentation.nonnullLocalUcastMacs().values());
             }
         }
         return Collections.emptySet();