BUG-6017 java.lang.NullPointerException at org.opendaylight.ovsdb.openstack.netvirt... 15/40815/1
authorvinoth <m.vinoth@hcl.com>
Tue, 21 Jun 2016 17:26:32 +0000 (22:56 +0530)
committerSam Hague <shague@redhat.com>
Fri, 24 Jun 2016 13:35:30 +0000 (13:35 +0000)
         createBridges(BridgeConfigurationManagerImpl.java:407)

    * There is no external bridge interface while reading from southbound bridge node.
    * Here highlighting the exception with existing conditional code.

Change-Id: Id51a97fcec7bc7a63de2f5a4eb45880d991d8eca
Signed-off-by: vinoth <m.vinoth@hcl.com>
openstack/net-virt/src/main/java/org/opendaylight/netvirt/openstack/netvirt/impl/BridgeConfigurationManagerImpl.java

index 297576befae7fde198ad0bac7c4540ce47479021..d3b3578e1f19e3f9b23de2b15b4c65c5d752010f 100644 (file)
@@ -435,7 +435,7 @@ public class BridgeConfigurationManagerImpl implements BridgeConfigurationManage
                 return false;
             }
             Node extBridgeNode = southbound.readBridgeNode(ovsdbNode, brExt);
-            Preconditions.checkNotNull(extBridgeNode);
+            Preconditions.checkNotNull(extBridgeNode, "br-ex cannot be null or empty!");
             if (!addPatchPort(extBridgeNode, brExt, portNameExt, portNameInt)) {
                 LOG.error("Add Port {} to Bridge {} failed", portNameExt, brExt);
                 return false;