Skip to content

Commit 836496b

Browse files
[test] Correct failing test.
1 parent 8495c4a commit 836496b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

exist-core/src/main/java/org/exist/xquery/AbstractExpression.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,11 @@ public int getColumn() {
150150

151151
@Override
152152
public Source getSource() {
153-
return context.getSource();
153+
try {
154+
return context.getSource();
155+
} catch (IllegalStateException e) {
156+
return null;
157+
}
154158
}
155159

156160
@Override

0 commit comments

Comments
 (0)