Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
StepAvailable: if 'step' is null, return false
- Loading branch information
Showing
with
3 additions
and
0 deletions.
-
+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)) { |
|
|