Skip to content

Commit

Permalink
Update BlackReflection.java
Browse files Browse the repository at this point in the history
  • Loading branch information
nnjun committed Feb 19, 2022
1 parent 8d15842 commit f8374a5
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,11 @@ public Object invoke(Object proxy, Method method, Object[] args) throws Throwabl
return call;
} catch (Throwable throwable) {
if (DEBUG) {
throwable.printStackTrace();
if (throwable.getCause() != null) {
throwable.getCause().printStackTrace();
} else {
throwable.printStackTrace();
}
}
if (throwable instanceof BlackNullPointerException) {
throw new NullPointerException(throwable.getMessage());
Expand Down

0 comments on commit f8374a5

Please sign in to comment.