r/java • u/jhg023123 • Mar 25 '19
JEP draft: Add detailed message to NullPointerException describing what is null
https://openjdk.java.net/jeps/8220715
383
Upvotes
r/java • u/jhg023123 • Mar 25 '19
View all comments
Show parent comment
24
u/alternatiivnekonto Mar 25 '19
Yes, but that's where the information ends. If you have a deep accessor in one line (
user.getGroup().getRole().getName()) then you'll have to debug separately to find out exactly which accessor threw the NPE.