Project: netvirt stable/carbon
01bd8617503798ec2fe200e5334e4acbef138730
Fix NPE in DhcpAllocationPoolManager close()
This NPE happens during shutdown, because dhcpAllocationPoolListener is
null unless isDhcpDynamicAllocationPoolEnabled, so it has to be null
checked before closing it.
2017-06-08 14:15:34,997 | ERROR | Bundle Shutdown | BeanRecipe
| 15 - org.apache.aries.blueprint.core - 1.6.1 | The blueprint bean
dhcpAllocationPoolManager in bundle
org.opendaylight.netvirt.dhcpservice-impl/0.5.0.SNAPSHOT incorrectly
threw an exception from its destroy method.
java.lang.NullPointerException
at
org.opendaylight.netvirt.dhcpservice.DhcpAllocationPoolManager.close(DhcpAllocationPoolManager.java:88)
Change-Id: I5d7482a0bf6ffbaf34dea0ebca1566ff641fea7c
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
-Subproject commit 2ceab866932eda11217bbc4be6e809275a1d2d99
+Subproject commit 01bd8617503798ec2fe200e5334e4acbef138730