How to trace java.lang.NullPointerException error.
Can someone please tell me how to debug java.lang.NullPointerException errors? I have an automated solution written in groovy and every so often in the error log I get the line: ERROR:java.lang.NullPointerException. The error does not appear to affect the running of the script but I am really keen to resolve whatever might be causing the problem. I get no other information other than this and the script log gives me nothing extra to go off. There is nothing to tell me what line and in what script the error is occurring, which makes debugging very difficult and time consuming. If someone has experience of debugging issues of this nature I'd be very grateful if they could tell me how to go about determining the script and line responsible. Thank you.