File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
spring-tx/src/main/java/org/springframework/transaction/interceptor Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -1067,10 +1067,11 @@ private Mono<Void> completeTransactionAfterThrowing(@Nullable ReactiveTransactio
1067
1067
* @param ex the throwable to try to unwrap
1068
1068
*/
1069
1069
private Throwable unwrapIfResourceCleanupFailure (Throwable ex ) {
1070
- if (ex instanceof RuntimeException &&
1071
- ex .getCause () != null &&
1072
- ex .getMessage ().startsWith ("Async resource cleanup failed" )) {
1073
- return ex .getCause ();
1070
+ if (ex instanceof RuntimeException && ex .getCause () != null ) {
1071
+ String msg = ex .getMessage ();
1072
+ if (msg != null && msg .startsWith ("Async resource cleanup failed" )) {
1073
+ return ex .getCause ();
1074
+ }
1074
1075
}
1075
1076
return ex ;
1076
1077
}
You can’t perform that action at this time.
0 commit comments