Apr 12
I enjoyed the article Implementing the Null Object Pattern using AOP, by Dale Asberry.
It is another example of how you can take something that is “annoying” in your development, and having an elegant solution with AOP.
NullPointerException’s are such a pain. Whenever you get a NPE in your app as a developer you sit back and *sigh*. “Time for the debugger”, and you know that it could be awhile.
With a simple aspect, and the right pointcuts, we get real information about the ugly NPEs.