From 06c0211f1fc6449c58d68bd9401bfa01a3546aff Mon Sep 17 00:00:00 2001 From: jmacxx <47253594+jmacxx@users.noreply.github.com> Date: Wed, 2 Dec 2020 09:43:41 -0600 Subject: [PATCH] Prevent annoying popup errors for unhandled systray exception. --- common/src/main/java/bisq/common/setup/CommonSetup.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/src/main/java/bisq/common/setup/CommonSetup.java b/common/src/main/java/bisq/common/setup/CommonSetup.java index b56613bd56..f90424d617 100644 --- a/common/src/main/java/bisq/common/setup/CommonSetup.java +++ b/common/src/main/java/bisq/common/setup/CommonSetup.java @@ -74,6 +74,9 @@ public class CommonSetup { } 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());