#403 NPE using method=html with XQuery

v8.5.1
closed
5
2012-10-08
2005-08-31
Michael Kay
No

When the HTML output method is selected when using
XQuery, a NullPointerException occurs:

java.lang.NullPointerException
at
net.sf.saxon.event.HTMLURIEscaper.isUrlAttribute(HTMLURIEscaper.java:60)

Source fix: in net.sf.saxon.event.HTMLURIEscaper,
change method isUrlAttribute (line 59) to read:

public boolean isUrlAttribute(int element, int attribute) {
if (pool == null) {
pool = getNamePool();
}
String attributeName =
pool.getDisplayName(attribute);
if (!urlAttributes.contains(attributeName)) {
return false;
}
String elementName = pool.getDisplayName(element);
return urlCombinations.contains(elementName +
'+' + attributeName);
}

Applies to Saxon 8.5.1 only.

Michael Kay

Discussion

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks