Permalink
Browse files

StepAvailable: if 'step' is null, return false

  • Loading branch information...
josteinaj authored and ndw committed Mar 6, 2017
1 parent 6b286b1 commit 676183a607449e9f36a5cb02a22b10f5e11f6a79
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/main/java/com/xmlcalabash/functions/StepAvailable.java
@@ -95,6 +95,9 @@ public Sequence call(XPathContext xPathContext, Sequence[] sequences) throws XPa
XProcRuntime runtime = registry.getRuntime(xdef);
XStep step = runtime.getXProcData().getStep();
if (step == null) {
return BooleanValue.FALSE;
}
// FIXME: this can't be the best way to do this...
// step == null in use-when
if (step != null && !(step instanceof XCompoundStep)) {

0 comments on commit 676183a

Please sign in to comment.