Thanks for reporting it. I've logged it and provided an initial explanation here:

https://saxonica.plan.io/issues/1753

Please monitor that bug entry for any follow-up (use the Watch button)

I'm going to treat this as a bug in the EXSLT extension function concerned: the calling mechanism has changed the way an empty sequence is handled, and I don't propose to change that.

Michael Kay
Saxonica

On 29 Apr 2013, at 21:19, Gerben Abbink wrote:

I have this XSLT Stylesheet:

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:date="http://exslt.org/dates-and-times"
    extension-element-prefixes="date">
    <xsl:template match="//element">
            <xsl:value-of select="date:difference('whatever', @non-existing)"/>
    </xsl:template>
</xsl:stylesheet>

and this XML file:

<root>
    <element/>
</root>

When i run this under SaxonPE9-5-0-1J i get an java.lang.NullPointerException.

I don't get a NullPointerException when i run it under SaxonPE9-4-0-7J.

I use my own software. I use a temporary license key.


Any ideas? Is this a bug in SaxonPE9-5-0-1J?


- Gerben Abbink
------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
saxon-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/saxon-help