You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When returning a JSON object that has a field set to null, Gson cannot handle this field and throws an error. In a display panel, this usually results in a crash, but is sometimes error-handled as the display panel getting deleted.
Steps to reproduce the problem:
Assemble a display panel, variable store, scripting drive and scripting terminal.
Create an operator variable card with this script.
Apply0 the generated operator
Put the new variable card into a display panel
Game crash or display panel vanishes.
Expected behaviour:
I believe fields assigned null should be filtered out and ignored when converting a json object into nbt, though the exact behaviour of this may need discussion (null can be useful for communication between scripts, but doesn't really exist in NBT)
When I wrote this issue, I was testing it in singleplayer using just scripting and dynamics. The crashes seemed to happen most often when the script was run multiple times over multiple ticks, but it did still happen just 1 operation too
Issue type:
Short description:
When returning a JSON object that has a field set to null, Gson cannot handle this field and throws an error. In a display panel, this usually results in a crash, but is sometimes error-handled as the display panel getting deleted.
Steps to reproduce the problem:
Expected behaviour:
I believe fields assigned
null
should be filtered out and ignored when converting a json object into nbt, though the exact behaviour of this may need discussion (null can be useful for communication between scripts, but doesn't really exist in NBT)Versions:
Log file:
https://gist.github.com/FloralSoda/a4e65e108424e83ae3d8ec993e138e73
The text was updated successfully, but these errors were encountered: