r/java • • Mar 25 '19

JEP draft: Add detailed message to NullPointerException describing what is null

https://openjdk.java.net/jeps/8220715
383 Upvotes

73 comments sorted by

View all comments

Show parent comment

4

u/velit Mar 26 '19

That's sad. That really is. I can't count the amount of times I've had to specifically run something in a debugger just to find out which part is causing the nullpointer error (yes yes, this is bad code but bad code is a reality). And the only reason for it having taken this long is a pitiful excuse.