Useful message about NullPointerException

pike pike630 at
Wed Jan 21 12:45:08 UTC 2015

We frequently see NullPointerException in our logs. It's really a big
headache when we see a NullPointerException and it is encapsulated in
another exception as we don't know which object is null and it is throwing
an Exception. Is there any way we can get to know the object type or the
object variable name where the object is null and it is throwing a
NullPointerException? i.e, instead of just saying there is a
NullPointerException, can we add some friendly message? 

View this message in context:
Sent from the OpenJDK Core Libraries mailing list archive at

More information about the core-libs-dev mailing list