Showing
1 changed file
with
1 additions
and
1 deletions
... | ... | @@ -249,7 +249,7 @@ class DeviceActorMessageProcessor extends AbstractContextAwareMsgProcessor { |
249 | 249 | |
250 | 250 | //Thingskit function |
251 | 251 | JsonNode old = JacksonUtil.toJsonNode(request.getAdditionalInfo()); |
252 | - ObjectNode additional = old.isEmpty() ?mapper.createObjectNode():(ObjectNode)old; | |
252 | + ObjectNode additional = (old == null || old.isEmpty()) ?mapper.createObjectNode():(ObjectNode)old; | |
253 | 253 | if(!additional.has("cmdType")){ |
254 | 254 | additional.put("cmdType", DeviceTransportType.MQTT.name()); |
255 | 255 | } | ... | ... |