p:error with empty input causes NPE #171

Closed
ndw opened this Issue Aug 21, 2014 · 1 comment

Comments

Projects
None yet
1 participant
@ndw
Owner

ndw commented Aug 21, 2014

<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" version="1.0"
                xmlns:c="http://www.w3.org/ns/xproc-step"
                xmlns:exf="http://exproc.org/standard/functions">
<p:output port="result"/>

<p:identity>
  <p:input port="source">
    <p:inline><doc>FAIL&#10;</doc></p:inline>
  </p:input>
</p:identity>

<p:choose>
  <p:when test="starts-with(/*, 'FAIL')">
    <p:error code="c:FAIL">
      <p:input port="source">
        <p:empty/>
      </p:input>
    </p:error>
  </p:when>
  <p:otherwise>
    <p:identity/>
  </p:otherwise>
</p:choose>

</p:declare-step>

@ndw ndw added the test label Aug 23, 2014

@ndw

This comment has been minimized.

Show comment
Hide comment
@ndw

ndw Aug 26, 2014

Owner

I believe this is fixed in XML Calabash 1.0.19, released today.

Owner

ndw commented Aug 26, 2014

I believe this is fixed in XML Calabash 1.0.19, released today.

@ndw ndw closed this Aug 26, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment