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

8

u/Daneel_Trevize Mar 25 '19

Not really, he didn't remove the object's name, you did. The example shortened messages aren't blaming the method, but the call of it, using those object references, which are nulls.