Skip to content

Commit afc5717

Browse files
authored
Merge pull request #138 from evolvedbinary/7.x.x/hotfix/npe-xupdate
[7.x.x] Avoid an NPE when there are no XUpdate Conditionals
2 parents 9ea1069 + cc74a8c commit afc5717

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)