alshabib
Committed by Gerrit Code Review

small fix to unregister devicelistener in HostLocationProvider to avoid an NPE

Change-Id: Ib14a484713f07d6ce5275fe10404aa9714467945
......@@ -109,6 +109,7 @@ public class HostLocationProvider extends AbstractProvider implements HostProvid
public void deactivate() {
providerRegistry.unregister(this);
pktService.removeProcessor(processor);
deviceService.removeListener(deviceListener);
providerService = null;
log.info("Stopped");
}
......