Is it okay to throw NullPointerException programmatically?
I see no problem with throwing a NPE as early as possible before the JVM does it for you – in particular for null arguments. There seems to be some debate about this, but there are many examples in the Java SE libraries that does exactly this. I cannot see why NPE should be holy … Read more