You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by ji...@apache.org on 2004/05/28 04:47:10 UTC

[jira] Resolved: (XERCESJ-966) NPE invoking ElementImpl.normalize

Message:

   The following issue has been resolved as FIXED.

   Resolver: Michael Glavassevich
       Date: Thu, 27 May 2004 7:46 PM

Thanks Antonio and Neil for pointing out these problems. Should be fixed now in CVS.
---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/XERCESJ-966

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XERCESJ-966
    Summary: NPE invoking ElementImpl.normalize
       Type: Bug

     Status: Resolved
   Priority: Critical
 Resolution: FIXED

    Project: Xerces2-J
 Components: 
             DOM
   Versions:
             2.6.2

   Assignee: Michael Glavassevich
   Reporter: Antonio Arena

    Created: Mon, 17 May 2004 10:40 AM
    Updated: Thu, 27 May 2004 7:46 PM
Environment: Platforms:Linux, Solaris -- JDK: 1.3.1, 1.4.2

Description:
Using Xerces in Tomcat5, I came across a NPE
when invoking the normalize method on a node.

I rebuilt Xerces 2.6.2 setting debug=on in the ANT
build file and found that line 384 in ElementImpl
needs a small fix.

The original line:

if ( kid.getNodeValue().length()==0 )

should become

if ( kid.getNodeValue()==null || kid.getNodeValue().length()==0 )

Kind regards,
  Antonio


---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org