public XPathFunction resolveFunction(QName qname, int arity) handles className
incorrectly
------------------------------------------------------------------------------------------
Key: XALANJ-2210
URL: http://issues.apache.org/jira/browse/XALANJ-2210
Project: XalanJ2
Type: Bug
Components: XPath-function
Versions: Latest Development Code
Reporter: Dave Brosius
The resolveFunction does not handle the className variable correctly resulting
in possible NPEs
For instance className is unitialized in the else, but used none the less.
String className = null;
String methodName = null;
if (uri.startsWith("http://exslt.org"))
{
className = getEXSLTClassName(uri);
methodName = qname.getLocalPart();
}
else if (!uri.equals(ExtensionNamespaceContext.JAVA_EXT_URI))
{
int lastSlash = className.lastIndexOf("/");
if (-1 != lastSlash)
className = className.substring(lastSlash + 1);
}
--
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
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]