Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

p:error with empty input causes NPE #171

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

p:error with empty input causes NPE #171

ndw opened this issue Aug 21, 2014 · 1 comment
Labels

Comments

@ndw
Copy link
Owner

@ndw 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
Copy link
Owner Author

@ndw 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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.