Page 1 of 1

Global Variable map turns null on restart

Posted: 15 Dec 2017 04:32
by anuraag
I am getting a strange bug when storing weather data into global Variable.

Here is script i am using
global_weather=fromJSON(jsonfile)

Now after system restart or Automagic service restart i see a null value of global_weather.

If i directly store json file to global_weather than it stays.

Json file is attached.

Re: Global Variable map turns null on restart

Posted: 15 Dec 2017 14:28
by Desmanto
Strange, I can reproduce your problem too here with different glovar name, global_widget. After restart automagic, the log shows the global_widget = null too. It seems to happen only with your weather json file.

I've used another flow to parse chrome's bookmarks file (fromJSON()). I believe the nested level is much more than your weather json. And I don't encounter the null problem after restarting automagic. The Glovar which contain the bookmark still retains the bookmarks map + list value. Maybe other can try it too.

Re: Global Variable map turns null on restart

Posted: 15 Dec 2017 21:58
by Martin
I can also reproduce the problem. This is caused by the values that are set to null, for example vt1alerts.
The next update should fix this problem.

Thanks for reporting!