DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21178>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21178

NullPointerException caused by wrong for loop in 
org.apache.xalan.xsltc.dom.MultiDOM.addDOMAdapter()

           Summary: NullPointerException caused by wrong for loop in
                    org.apache.xalan.xsltc.dom.MultiDOM.addDOMAdapter()
           Product: XalanJ2
           Version: 2.5Dx
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: org.apache.xalan.xsltc
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


in the method org.apache.xalan.xsltc.dom.MultiDOM.addDOMAdapter()
there is an infinite for loop:
  for (int i = dtmSize - 1; i >= 0; i++) {
    domPos = dtmIds.elementAt(i) >>> DTMManager.IDENT_DTM_NODE_BITS;
    _adapters[domPos] = adapter;
  }
my guess is the i-- was intended instead of i++.

since dtmIds.elementAt(i) returns null a NullPointerException
will be thrown when this code is executed.

Reply via email to