re: Those sneaky NullPointerExceptions! VIEW POST

FULL DISCUSSION
 

Oh yeah... the bad old NullPointerException. It's called "The Billion Dollar Mistake" for a reason. ;-)
I try to fight this devil wherever I can. For me, the most important rules are

  • Don't return NULL
  • Don't pass NULL

I'm so annoyed by this subject, that I'm writing a little rant post about it myself at the moment. :-D

The post will focus on the "Null Object Pattern" as one of the solutions. I hope I will get it done soon.

Nice article. Keep up the good work.

 

Thanks, Lars! Yeah, it can be a real pain in the behind!!!

code of conduct - report abuse