We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e04921d commit 28f94c1Copy full SHA for 28f94c1
1 file changed
rmf/rmf-java-base/src/main/java/io/vrap/rmf/base/client/http/InternalLoggerMiddlewareImpl.java
@@ -109,8 +109,7 @@ public CompletableFuture<ApiHttpResponse<byte[]>> invoke(final ApiHttpRequest re
109
requestContext.ifPresent(c -> MDC.setContextMap(c.getValue()));
110
Throwable cause = throwable instanceof CompletionException ? throwable.getCause() : throwable;
111
if (cause instanceof ApiHttpException) {
112
- final ApiHttpResponse<byte[]> errorResponse = ((ApiHttpException) throwable.getCause())
113
- .getResponse();
+ final ApiHttpResponse<byte[]> errorResponse = ((ApiHttpException) cause).getResponse();
114
final Level level = exceptionLogEvents.entrySet()
115
.stream()
116
.filter(classLevelEntry -> classLevelEntry.getKey()
0 commit comments