Skip to content

Commit

Permalink
Prevent annoying popup errors for unhandled systray exception.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmacxx committed Dec 2, 2020
1 parent 0967715 commit 06c0211
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions common/src/main/java/bisq/common/setup/CommonSetup.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ public static void setupUncaughtExceptionHandler(UncaughtExceptionHandler uncaug
} else if (throwable instanceof ClassCastException &&
"sun.awt.image.BufImgSurfaceData cannot be cast to sun.java2d.xr.XRSurfaceData".equals(throwable.getMessage())) {
log.warn(throwable.getMessage());
} else if (throwable instanceof UnsupportedOperationException &&
"The system tray is not supported on the current platform.".equals(throwable.getMessage())) {
log.warn(throwable.getMessage());
} else {
log.error("Uncaught Exception from thread " + Thread.currentThread().getName());
log.error("throwableMessage= " + throwable.getMessage());
Expand Down

0 comments on commit 06c0211

Please sign in to comment.