We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f58c7d8 commit 6c054f8Copy full SHA for 6c054f8
spring-web/src/main/java/org/springframework/http/client/ReactorNettyClientRequest.java
@@ -131,15 +131,16 @@ static IOException convertException(RuntimeException ex) {
131
// Exceptions.ReactiveException is package private
132
Throwable cause = ex.getCause();
133
134
- if (cause instanceof UncheckedIOException uioEx) {
135
- return uioEx.getCause();
136
- }
137
- else if (cause instanceof IOException ioEx) {
+ if (cause instanceof IOException ioEx) {
138
return ioEx;
139
}
140
- else {
141
- return new IOException(ex.getMessage(), cause);
+ if (cause instanceof UncheckedIOException uioEx) {
+ IOException ioEx = uioEx.getCause();
+ if (ioEx != null) {
+ return ioEx;
+ }
142
143
+ return new IOException(ex.getMessage(), cause);
144
145
146
0 commit comments