Mantis - Resin
Viewing Issue Advanced Details
1916 minor always 07-30-07 17:29 08-13-07 10:24
ccwf  
ferg  
normal  
closed 3.1.1  
fixed  
none    
none 3.1.3  
0001916: Resin NodeList implementation of item(0) fails for empty NodeLists
Spec requires that item(0) return null for empty NodeLists. With Resin's implementation (QDeepNodeList), it throws a null pointer exception.
The bug also affects Resin 3.0.23. Here's a sample JSP that demonstrates the bug:

<%@ page import="javax.xml.parsers.*" %>
<%=
DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument().getElementsByTagName("foo").item(0)
%>

Notes
(0002164)
ccwf   
07-30-07 18:13   
Test passes for 3.1.2.