Migrate from GitHub to SourceForge with this tool. Check out all of SourceForge's recent improvements.
Close

#17 ElementNameAndAttributeQualifier errors out with NPE

closed-fixed
nobody
None
5
2006-10-27
2004-05-12
sgrotten
No

When specifying an attribute name, "name", for example,
if a nested XML element does not have a "name"
attribute, attempting to compare this XML document will
result in a NPE.

The method areAttributesComparable() needs to check if
qualifyingAttributes[i] is null prior to the line

nsURI = qualifyingAttributes[i].getNamespaceURI();

or some other means to verify that the attribute is
present in order to make the above call.

Discussion

  • Stefan Bodewig

    Stefan Bodewig - 2006-10-27

    Logged In: YES
    user_id=113148

    fixed in CVS, thanks.

     
  • Stefan Bodewig

    Stefan Bodewig - 2006-10-27
    • status: open --> closed-fixed
     

Log in to post a comment.