Null value in groovy scripts

In groovy script is NULL constant represent by object. On this object you can call some methods. See example:

​def attr = null;
def attr2 = attr.toString();


return attr2 + "b";​​​​

Return value will be nullb. Be careful when defining the root of the tree and in another scripts.

  • by svandav