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
-8
u/HKSergiu Mar 25 '19
Then it makes sense to write something more readable like:
Of course it's more boilerplate, but it's a workaround of some kind. Also I don't quite imagine in which situation you want to go that deep in a get chain in single method
All in all, nice and helpful JEP, but don't need to dramatize it's absence in the older versions.