Ugo Cei wrote:
Il giorno 21/apr/04, alle 20:14, Marc Portier ha scritto:
Joerg Heinicke wrote:
Marc Portier wrote:NPE is really bad - not only here - for the two mentioned reasons. But if you insist on your NPE you can change Ugo's proposal to
if (id == null) {
throw new NPE("id must not be null");
}
So we have NPE, which is RuntimeE, meaningful message and early failure :)
Sorry guys, be honest: you can't expect every deref in Java to be proceeded by this kind of test?
No, but since you brought up the issue and asked for an input ... anyway, your latest proposal looks fine to me.
yeah, sorry for assuming too much context upfront thx for acking
-marc= -- Marc Portier http://outerthought.org/ Outerthought - Open Source, Java & XML Competence Support Center Read my weblog at http://blogs.cocoondev.org/mpo/ [EMAIL PROTECTED] [EMAIL PROTECTED]
