Useful message about NullPointerException
fweimer at redhat.com
Tue Jan 27 15:04:22 UTC 2015
On 01/27/2015 03:57 PM, Seán Coffey wrote:
> Adding hotspot-dev to this mail thread also as it's relevant to hotspot.
> (complete thread at
> As one who often has to dig through application logs and JDK issues, I
> think this would certainly be a useful addition to the NPE handling
> process. If the VM has extra info on the exact object that caused the
> NPE, it should be output in that exception. "a.getB().getC()" is a good
> example of the different code paths one has to go down to determine
> where the NPE could have arisen from.
Maybe it's possible to add a byte code office to the exception it self,
or the stack trace? Especially the former wouldn't need much additional
Florian Weimer / Red Hat Product Security
More information about the core-libs-dev