[ http://issues.apache.org/jira/browse/XERCESJ-1185?page=all ]
Michael Glavassevich resolved XERCESJ-1185.
-------------------------------------------
Fix Version/s: 2.8.1
Resolution: Fixed
Thanks Dave. I've committed your patch to SVN. That line of code was redundant
though you wouldn't get an NPE. NodeList.item() returns null if the index
passed to it isn't valid.
> [PATCH] add code to guard against npe
> -------------------------------------
>
> Key: XERCESJ-1185
> URL: http://issues.apache.org/jira/browse/XERCESJ-1185
> Project: Xerces2-J
> Issue Type: Bug
> Components: DOM (HTML)
> Affects Versions: 2.8.0
> Reporter: Dave Brosius
> Assigned To: Michael Glavassevich
> Priority: Minor
> Fix For: 2.8.1
>
> Attachments: guard_against_npe.diff
>
>
> code erroneously gets list item 0 without checking size, then checks and gets
> element 0 if it exists. Remove the first unsafe operation
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]