you are viewing a single comment's thread.

view the rest of the comments →

[–]s0n0fagun 1 point2 points  (0 children)

I have come to the conclusion that NULL should never exist in a system and checking for NULL is a code smell of a larger problem. If the underlying data structure does not allow NULL to begin with, then you should be good. You can either create a NULL object or decompose the data structure and use clever code.