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
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!!!
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.