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
ObjectValue null string value support
Rich Turnerd94db9e4a48d
diff --git a/model/src/main/java/org/openremote/model/value/impl/ObjectValueImpl.java b/model/src/main/java/org/openremote/model/value/impl/ObjectValueImpl.javaindex 96b92d38a..4511ea176 100644--- a/model/src/main/java/org/openremote/model/value/impl/ObjectValueImpl.java+++ b/model/src/main/java/org/openremote/model/value/impl/ObjectValueImpl.java@@ -124,7 +124,7 @@ public class ObjectValueImpl extends ValueImpl implements ObjectValue {if (key == null) {throw new NullPointerException("Null keys are not allowed in JSON objects");}- map.put(key, factory.create(value));+ map.put(key, value == null ? null : factory.create(value));return this;}