There has been lots of discussion going on for a very long time weather to use NPE or IAE when a null is passed when a non-null object is expected as an method/constructor argument.
After developing java applications for quite sometime, I have observed that when one sees a NPE in the log file, it usually [...]
Archive for the 'Java' Category
NullPointerException vs IllegalArgumentException
Published October 28th, 2008 in All and Java. 0 CommentsIf you have programmed any considerably sized Java web application, chance that you wrote some debug statements to dump what’s coming over wire as request and going out as response. Next time you run into such requirement, well, save some typing and use this Http Servlet Debug Filter.
This is simple jar file [...]
