Bug 4160 - null pointer exception in getDHCPServerPort() (re-do)
authorFlavio Fernandes <ffernand@redhat.com>
Wed, 26 Aug 2015 14:46:35 +0000 (10:46 -0400)
committerFlavio Fernandes <ffernand@redhat.com>
Wed, 26 Aug 2015 15:03:47 +0000 (11:03 -0400)
commitd2ff22fbc0b3df0f2bfac8deac47afd866078898
tree9245e25397f199a07c559e541b3ceb6e4312d7ee
parent22d653b1bc0a6f533e7dea783f92c92737d178b2
Bug 4160 - null pointer exception in getDHCPServerPort() (re-do)

null pointer exception in SecurityServicesImpl.getDHCPServerPort()
because neutronPortCache.getPort() may return null. It needs null check.
NOTE: the order of neutron port creation/deletion via neutron northbound
api and ovs port creation/deletion is not deterministic. Either order can
happen. SecurityServicesImpl seems to be fixed to be aware of it.
it's another story. This patch addresses only null pointer exception
for now.

This is a redo, to fix a merge mistake introduced in
https://git.opendaylight.org/gerrit/#/c/24579/8..9

Original-Change-Id: I40f78b1477f1c2a6ad3e23b2e60e21be6d9abc23
Change-Id: Ib929bf774426d6240934ea406189e25be1ecf536
Co-Authored-By: Isaku Yamahata <isaku.yamahata@intel.com>
Signed-off-by: Flavio Fernandes <ffernand@redhat.com>
openstack/net-virt/src/main/java/org/opendaylight/ovsdb/openstack/netvirt/impl/SecurityServicesImpl.java