You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Kelly Campbell <ca...@channelpoint.com> on 2001/03/18 10:37:59 UTC
[PATCH] null params in extensions
I ran into a bug with handling of null args to java extensions. Here's an
example of what caused the errors:
<xsl:param name="foo">foo</xsl:param>
<xsl:variable name="bar" select="my-pkg-ext:Foo.new($foo)"/>
This type of case works fine when the param isn't overriden, but when I set
the param named foo on the Transformer to null from within some code,
MethodResolver.scoreMatch throws a NullPointerException. A patch which fixes
these problems is attached.
-Kelly
--
Kelly A. Campbell Software Engineer
<ca...@channelpoint.com> ChannelPoint, Inc.
<ca...@merlotxml.org> Colorado Springs, Co.
Re: [PATCH] null params in extensions
Posted by Gary L Peskin <ga...@firstech.com>.
Kelly Campbell wrote:
>
> I ran into a bug with handling of null args to java extensions. Here's an
> example of what caused the errors:
>
> <xsl:param name="foo">foo</xsl:param>
> <xsl:variable name="bar" select="my-pkg-ext:Foo.new($foo)"/>
>
> This type of case works fine when the param isn't overriden, but when I set
> the param named foo on the Transformer to null from within some code,
> MethodResolver.scoreMatch throws a NullPointerException. A patch which fixes
> these problems is attached.
Thanks, Kelly --
I'll have a look at this and commit the change. Can you enter this into
bugzilla?
Thanks for reporting and fixing this problem,
Gary