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 ...@@ -374,7 +374,7 @@ public class LldpLinkProvider extends AbstractProvider implements ProbedLinkProv
374 * Loads available devices and registers their ports to be probed. 374 * Loads available devices and registers their ports to be probed.
375 */ 375 */
376 private void loadDevices() { 376 private void loadDevices() {
377 - if (!enabled) { 377 + if (!enabled || deviceService == null) {
378 return; 378 return;
379 } 379 }
380 deviceService.getAvailableDevices() 380 deviceService.getAvailableDevices()
......