Bug 7384: CSIT Exception: NPE in deleteVpnInterface 27/51027/2
authorAbhinav Gupta <abhinav.gupta@ericsson.com>
Wed, 25 Jan 2017 18:49:30 +0000 (00:19 +0530)
committerSam Hague <shague@redhat.com>
Wed, 25 Jan 2017 22:44:47 +0000 (22:44 +0000)
commit0b8e3ffcfc745d73630e670ad45846990012932a
tree13dd7331c9ed26b6d2c18bd4e8d22124a65b0d83
parent8aa1ee9de52f7845ea25a875b953e93a955c5c07
Bug 7384: CSIT Exception: NPE in deleteVpnInterface

getNeutronPort is returning null, causing port.getUUid() to result
in an NPE.
Further analysis necessary as to how it happened in the first place
since port delete event for the port in concern hasn't come.
The introduced check should ensure avoiding this NPE for now.

Change-Id: Ia4298d3b9f2b57b1a94805bca3ae34dffa2df4fe
Signed-off-by: Abhinav Gupta <abhinav.gupta@ericsson.com>
vpnservice/neutronvpn/neutronvpn-impl/src/main/java/org/opendaylight/netvirt/neutronvpn/NeutronvpnManager.java