Skip to content

Commit

Permalink
Fix crash on some old Android JVMs (issue #2)
Browse files Browse the repository at this point in the history
  • Loading branch information
akaita committed Dec 8, 2017
1 parent 3d104c2 commit 7e84b89
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ public String stacktrace() {
@Override
public synchronized Throwable fillInStackTrace() {
// don't store own stacktrace
// empty stacktrace prevents crashes on some JVMs when `getStackTrace()` is invoked
setStackTrace(new StackTraceElement[0]);
return this;
}

Expand Down

0 comments on commit 7e84b89

Please sign in to comment.