Code: Select all
[H: a = "[r: Hello]"]
[R: json.type(a)]
Code: Select all
[H: jType = json.append("",piece)]
[r: json.type(json.get(jType,0))]
It would be nice if a proper fix could be implemented.
Moderators: dorpond, trevor, Azhrei, giliath, jay, Mr.Ice, MapTool BugReport Manager
Code: Select all
[H: a = "[r: Hello]"]
[R: json.type(a)]
Code: Select all
[H: jType = json.append("",piece)]
[r: json.type(json.get(jType,0))]
Thanks for looking in to this. If I type the above in to chat I get:tiorthan wrote:It doesn't throw a NullPointerException at me on the SVN version but it tries to evaluate the contents of the string as a roll.
Is that the expected behaviour?
I'm not sure what you mean by evaluate as a roll. The R: is a roll option, but shouldn't be evaluated by json.type.java.lang.NullPointerException error executing expression json.type(a).
Error in body of roll. Statement options (if any): R Statement Body : json.type(a)