cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gianugo Rabellino <>
Subject [Kernel2.2] Remove nulls?
Date Wed, 31 Mar 2004 10:52:33 GMT
I've seen in the new API that in a number of places there are contracts 
that return null if something isn't found: since these are all perfect 
candidates for nasty NPEs, how about switching to NullObject pattern or 
throw Exceptions instead?

Just my 0.2c, but since we're talking foundations I think it could be a 
right time to be strict about code principles...


Gianugo Rabellino
Pro-netics s.r.l. -
Orixo, the XML business alliance -
     (Blogging at:

View raw message