We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa3f4bf commit 8e01c1cCopy full SHA for 8e01c1c
src/main/java/org/apache/ibatis/reflection/ExceptionUtil.java
@@ -9,9 +9,9 @@ public static Throwable unwrapThrowable(Throwable wrapped) {
9
Throwable unwrapped = wrapped;
10
while (true) {
11
if (unwrapped instanceof InvocationTargetException) {
12
- unwrapped = ((InvocationTargetException) wrapped).getTargetException();
+ unwrapped = ((InvocationTargetException) unwrapped).getTargetException();
13
} else if (unwrapped instanceof UndeclaredThrowableException) {
14
- unwrapped = ((UndeclaredThrowableException) wrapped).getUndeclaredThrowable();
+ unwrapped = ((UndeclaredThrowableException) unwrapped).getUndeclaredThrowable();
15
} else {
16
return unwrapped;
17
}
0 commit comments