Skip to content

Commit 8e01c1c

Browse files
committed
1 parent aa3f4bf commit 8e01c1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/apache/ibatis/reflection/ExceptionUtil.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ public static Throwable unwrapThrowable(Throwable wrapped) {
99
Throwable unwrapped = wrapped;
1010
while (true) {
1111
if (unwrapped instanceof InvocationTargetException) {
12-
unwrapped = ((InvocationTargetException) wrapped).getTargetException();
12+
unwrapped = ((InvocationTargetException) unwrapped).getTargetException();
1313
} else if (unwrapped instanceof UndeclaredThrowableException) {
14-
unwrapped = ((UndeclaredThrowableException) wrapped).getUndeclaredThrowable();
14+
unwrapped = ((UndeclaredThrowableException) unwrapped).getUndeclaredThrowable();
1515
} else {
1616
return unwrapped;
1717
}

0 commit comments

Comments
 (0)