Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

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.java
index 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;
}