BUG 1898: Fix NPE exception in SwitchManager. 20/11220/1
authorThomas Bachman <tbachman@yahoo.com>
Tue, 16 Sep 2014 00:51:33 +0000 (17:51 -0700)
committerThomas Bachman <tbachman@yahoo.com>
Tue, 16 Sep 2014 00:51:33 +0000 (17:51 -0700)
Change-Id: I0fa2607f85ad3b361761e6915ac6574e7ad24de5
Signed-off-by: Thomas Bachman <tbachman@yahoo.com>
groupbasedpolicy/src/main/java/org/opendaylight/groupbasedpolicy/renderer/ofoverlay/SwitchManager.java

index 27056e418092a37b8a19acec4d9314c1104f1796..1ba543e5af5988fddf95fa70f885c72a39342fae 100644 (file)
@@ -416,7 +416,7 @@ public class SwitchManager implements AutoCloseable {
                     if (fcnc.getName().matches(".*_(vxlan|tun)\\d+")) {
                         tunnelPort = nc.getId();
                     }
-                    if (nodeConfig != null) {
+                    if (nodeConfig != null && nodeConfig.getExternalInterfaces() != null ) {
                         for (String pattern : nodeConfig.getExternalInterfaces()) {
                             if (fcnc.getName().matches(pattern))
                                 externalPorts.add(nc.getId());