Description
If we have a simple script such as follows:
package example
def t =
{ someVariable.property = 1 }t()
When we run this, it will report a NPE and in the stack trace line 5 the call to t() will show up, but up the stack it will only show the file name on calls inside the closure with no line number. This is even worse when the call originates from java so that you could not even have a clue as to where in the groovy script the NPE took place.