Fix for ONOS-6433:NPE when deactivating org.onosproject.netcfglinksprovider

Change-Id: I876483f5d05679f9f3485ba0c40e29f062e39568
This commit is contained in:
Deepa Vaddireddy 2017-05-10 18:27:30 +05:30 committed by Ray Milkey
parent 73a6f5d72a
commit 21f5ae8632

View File

@ -162,6 +162,9 @@ public class NetworkConfigLinksProvider
protected void deactivate() { protected void deactivate() {
withdrawIntercepts(); withdrawIntercepts();
providerRegistry.unregister(this); providerRegistry.unregister(this);
deviceService.removeListener(deviceListener);
netCfgService.removeListener(cfgListener);
packetService.removeProcessor(packetProcessor);
disable(); disable();
log.info("Deactivated"); log.info("Deactivated");
} }