Ray Milkey
Committed by Gerrit Code Review

Fix NPE if synchronizer thread runs while the provider is shutting down.

Change-Id: I3024c4ff0315f60da1e3023449ac18080aa6e315
......@@ -374,7 +374,7 @@ public class LldpLinkProvider extends AbstractProvider implements ProbedLinkProv
* Loads available devices and registers their ports to be probed.
*/
private void loadDevices() {
if (!enabled) {
if (!enabled || deviceService == null) {
return;
}
deviceService.getAvailableDevices()
......