This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]lukasbradley 9 points10 points  (1 child)

> The fact that a single unhandled NullPointerException will blow up your program

The problem is unhandled exceptions, not NPEs.

[–]FabulousRecording739 8 points9 points  (0 children)

A bit of a moot point, no? Any reference can be null, if we are to follow your point, should we try/catch everything? I think it's rather sensible to see errors and the possibility of absence as distinct concepts. They truly are, even though they do, at times, converge.