unbound option bug in Calabash, I think

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The following pipeline fails, as expected, with err:XS0026 :

  <p:pipeline xmlns:p="http://www.w3.org/ns/xproc"> 
   <p:filter>
    <p:with-option name="select" select="$notBound">
     <p:empty/>
    </p:with-option>
   </p:filter>
  </p:pipeline>

But the following pipeline produces a segfault (in Calabash 0.9.9):

  <p:pipeline xmlns:p="http://www.w3.org/ns/xproc"> 
   <p:option name="notBound"/>
   <p:filter>
    <p:with-option name="select" select="$notBound">
     <p:empty/>
    </p:with-option>
   </p:filter>
  </p:pipeline>

with the following stack trace:

  java.lang.NullPointerException
          at net.sf.saxon.expr.Tokenizer.tokenize(Tokenizer.java:157)
          at
  net.sf.saxon.expr.ExpressionParser.parse(ExpressionParser.java:224)
          at
  net.sf.saxon.expr.ExpressionTool.make(ExpressionTool.java:73)
          at
  net.sf.saxon.sxpath.XPathEvaluator.createExpression(XPathEvaluator.java:167)
          at
  net.sf.saxon.s9api.XPathCompiler.compile(XPathCompiler.java:199)
          at
  com.xmlcalabash.runtime.XAtomicStep.evaluateXPath(XAtomicStep.java:601)
          at
  com.xmlcalabash.runtime.XAtomicStep.computeValue(XAtomicStep.java:537)
          at com.xmlcalabash.runtime.XPipeline.doRun(XPipeline.java:210)
          at com.xmlcalabash.runtime.XPipeline.run(XPipeline.java:130)
          at com.xmlcalabash.drivers.Main.run(Main.java:241)
          at com.xmlcalabash.drivers.Main.main(Main.java:65)

ht
- -- 
       Henry S. Thompson, School of Informatics, University of Edinburgh
                         Half-time member of W3C Team
      10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440
                Fax: (44) 131 651-1426, e-mail: ht@inf.ed.ac.uk
                       URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD4DBQFKDAbKkjnJixAXWBoRAvKrAJiH8tXc8FS0xY+CTkFPgLVNwFbpAJ0bNXEA
q1WMaDSB92CbmYl1I0KLiw==
=rCcJ
-----END PGP SIGNATURE-----

Received on Thursday, 14 May 2009 12:00:31 UTC