MQTT Datachange NullPointerException
Hi,
I have a Thing (based on MQTT) with some properties. One of them is called MQTT-Value which is configurate as MQTT-Target. Than I have a subscrption on datachange of the MQTT-Value-property.
The subscription looks like this:
me.Environment_Humidity = eventData.newValue.value.humidity;
me.Environment_Particles = eventData.newValue.value.particles;
me.Environment_Temperature = eventData.newValue.value.temp;
...
Now I get an error on every time where a new mqtt-value arrives:
[message: Execution error in service script [Event.DataChange:Property.MQTT_Environment] :: Wrapped java.lang.NullPointerException (Event.DataChange:Property.MQTT_Value#1)]
The MQTT-Value lookes like this:
{"temp":17.540277128455315,"humidity":48.41761546496747,"particles":409}
If I set the MQTT-Value by hand everything works. I think this had todo with permissions. I set visibility&run time-permissions for "system"-user but this doesn't work.
I working with ThingWorx 8.2.1-b140

