Skip to content

Commit 90a50d4

Browse files
dsbeckermp911de
authored andcommitted
Fix EvaluationContextExtension filter fall-through in ReactiveExtensionAwareEvaluationContextProvider.
Using JpaEvaluationContextExtension with reactive infrastructure in place, ReactiveExtensionAwareEvaluationContextProvider can lead to IllegalStateException if the desired extension doesn't match the predicate instead of being silently dropped. Closes #2392 Original pull request: #2393.
1 parent 23fbff0 commit 90a50d4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/org/springframework/data/spel/ReactiveExtensionAwareEvaluationContextProvider.java

+2
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ private Mono<List<EvaluationContextExtension>> getExtensions(
125125
if (extensionFilter.test(information)) {
126126
return Mono.just(extension);
127127
}
128+
129+
return Mono.empty();
128130
}
129131

130132
if (it instanceof ReactiveEvaluationContextExtension) {

0 commit comments

Comments
 (0)