xerces-j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Glavassevich (JIRA)" <xerces-j-...@xml.apache.org>
Subject [jira] Resolved: (XERCESJ-1185) [PATCH] add code to guard against npe
Date Sun, 10 Sep 2006 00:41:22 GMT
     [ 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: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org


Mime
View raw message