Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ private AsyncExceptionUnwrapper() {}

// Util function to unwrap CompletionException and expose underlying exception
public static Throwable unwrap(Throwable throwable) {
if (throwable.getCause() != null && throwable instanceof CompletionException) {
if (throwable instanceof CompletionException && throwable.getCause() != null) {
return throwable.getCause();
}
return throwable;
Expand Down
Loading