- HostNodeConnector host = device.toHostNodeConnector();
- if (host != null) {
- inactiveStaticDevices.remove(nodeConnector);
- for (IfNewHostNotify notify : newHostNotify)
- notify.notifyHTClient(host);
- for (IDeviceListener listener : listeners)
- listener.deviceAdded(device);
- } else {
- logger.debug("handleNodeConnectorStatusDown {}", nodeConnector);
+ if(device!=null){
+ HostNodeConnector host = device.toHostNodeConnector();
+ if (host != null) {
+ inactiveStaticDevices.remove(nodeConnector);
+ for (IfNewHostNotify notify : newHostNotify)
+ notify.notifyHTClient(host);
+ for (IDeviceListener listener : listeners)
+ listener.deviceAdded(device);
+ } else {
+ logger.debug("handleNodeConnectorStatusDown {}", nodeConnector);
+ }