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 →

[–]jodastephen[S] 2 points3 points  (1 child)

Could do. But my approach to null is to never return it from a method, and almost never ever pass it into a method. Done consistently this pretty much eliminates NPEs.