Bob's Blog
Random neural firings: life in general and life as a programmer
why check for nulls?

There are coding standards, such as the default settings of FxCop, that require checking method parameter values for null.


Here's a zany thought: how is the world, or more perticularly, my program, a better place if my program throws an argument exception instead of throwing an NPE because it attempts to dereference a null pointer?


I can't be the first person who has asked this...

2007-01-05 18:36:44 GMT
Add to My Yahoo! RSS