UtilXml.childElementList returning null

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

UtilXml.childElementList returning null

Adam Heath-2
What's the point of UtilXml.childElementList returning null, if the
element to look thru is null?  This causes code that calls that function
to have to check for a null return; wouldn't it just be better to return
an empty list, and then not have to have the rest of the code base
cluttered with all these null checks?
Reply | Threaded
Open this post in threaded view
|

Re: UtilXml.childElementList returning null

Tim Ruppert
+1

Cheers,
Tim
--
Tim Ruppert
HotWax Media

o:801.649.6594
f:801.649.6595


On Sep 22, 2007, at 4:57 PM, Adam Heath wrote:

What's the point of UtilXml.childElementList returning null, if the
element to look thru is null?  This causes code that calls that function
to have to check for a null return; wouldn't it just be better to return
an empty list, and then not have to have the rest of the code base
cluttered with all these null checks?


smime.p7s (3K) Download Attachment