Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.0
-
None
-
None
-
Groovy Version: 1.0 JVM: 1.5.0_10-b03
Description
C:\>groovy -e "null.setProperty('foo','bar')"
Caught: groovy.lang.MissingPropertyException: No such property: foo for class: org.codehaus.groovy.runtime.NullObject
at script_from_command_line.run(script_from_command_line:1)
at script_from_command_line.main(script_from_command_line)
At least I would expect a nice and familiar NPE