100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps
Java asset-managementbuildingdashboarddataplatformdevice-managementedge-computingenergyenergy-managementenergy-monitorfleet-managementfleet-telematicsiotiot-applicationiot-platformmodbusmqttmqtt-brokerota-updaterules-enginesmartcity
NullPointer fix
Michael Rademaker93e5b9ef3e08
diff --git a/manager/src/main/java/org/openremote/manager/asset/AssetStorageService.java b/manager/src/main/java/org/openremote/manager/asset/AssetStorageService.javaindex f5a04fab3..18d83194e 100644--- a/manager/src/main/java/org/openremote/manager/asset/AssetStorageService.java+++ b/manager/src/main/java/org/openremote/manager/asset/AssetStorageService.java@@ -1177,7 +1177,7 @@ public class AssetStorageService extends RouteBuilder implements ContainerServic// Did the location change?Point oldLocation = persistenceEvent.getPreviousState("location");Point newLocation = persistenceEvent.getCurrentState("location");- if ((oldLocation == null && newLocation != null) || oldLocation != newLocation || oldLocation.equalsExact(newLocation, 0)) {+ if ((oldLocation == null && newLocation != null) || oldLocation != newLocation || (oldLocation != null && oldLocation.equalsExact(newLocation, 0))) {clientEventService.publishEvent(new LocationEvent(asset.getId(), asset.getCoordinates(), timerService.getCurrentTimeMillis()));