Skip to content

Commit

Permalink
Merge pull request #4874 from jmacxx/fix_systray_error
Browse files Browse the repository at this point in the history
Prevent annoying popup errors for unhandled systray exception.
  • Loading branch information
ripcurlx authored Dec 3, 2020
2 parents 91a1a92 + 06c0211 commit c782f22
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 c782f22

Please sign in to comment.