Skip to content

Commit cc74a8c

Browse files
committed
[bugfix] Avoid an NPE when there are no XUpdate Conditionals
1 parent 9ea1069 commit cc74a8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exist-core/src/main/java/org/exist/xupdate/XUpdateProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,7 @@ private Conditional popConditional() {
950950

951951
private @Nullable Conditional peekConditional() {
952952
if (conditionals == null) {
953-
throw null;
953+
return null;
954954
}
955955
return conditionals.peek();
956956
}

0 commit comments

Comments
 (0)