<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>I would vote for a NullPointerException with a message that says "Null URI".</div><div>But I note that I generally interpret any NullPointerException as a place where a "." is.</div><div>And in the case discussed in this thread, this is far far deep inside.</div><div><br></div><div>paul</div><div><br></div><br><div><div>Le 11 févr. 2012 à 22:15, Grzegorz a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Another validation process that would help when doing XML exploration<br>
(i.e you don't know what is in the data and are trying to find out)<br>
would be to throw an exception of the string is null and not use the<br>
"null pointer" exception.<br></blockquote><div><br></div><div>Why not? NullPointerException is designed to handle just that.</div><div><br></div><div>Regards,</div><div>Grzegorz</div></div>
_______________________________________________<br>To control your jdom-interest membership:<br><a href="http://www.jdom.org/mailman/options/jdom-interest/youraddr@yourhost.com">http://www.jdom.org/mailman/options/jdom-interest/youraddr@yourhost.com</a></blockquote></div><br></body></html>