Commit 8c0decac authored by Phillip Webb's avatar Phillip Webb

Clear list after handling uncaught exceptions

See gh-4423
parent c595d897
......@@ -44,8 +44,13 @@ class LoggedExceptionHandler implements UncaughtExceptionHandler {
@Override
public void uncaughtException(Thread thread, Throwable ex) {
if (!isRegistered(ex) && this.parent != null) {
this.parent.uncaughtException(thread, ex);
try {
if (!isRegistered(ex) && this.parent != null) {
this.parent.uncaughtException(thread, ex);
}
}
finally {
this.exceptions.clear();
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment