alshabib

fix for mastership race condition on 1.0 branch

Change-Id: I213b292c283ddf3082cdfbd2f37cb5c34791e5a1
......@@ -614,7 +614,11 @@ public class DeviceManager
}
// device is connected to this node:
reassertRole(did, myNextRole);
if (store.getDevice(did) != null) {
reassertRole(did, myNextRole);
} else {
log.warn("Device is not yet/no longer in the store: {}", did);
}
}
}
......