Catch NPE seen a couple of times in Systray.setTrayIcon()

This commit is contained in:
CalDescent 2021-08-18 07:51:26 +01:00
parent 79bbadad2f
commit 9c20967d24

View File

@ -290,6 +290,7 @@ public class SysTray {
}
public void setTrayIcon(int iconid) {
try {
if (trayIcon != null) {
switch (iconid) {
case 1:
@ -306,6 +307,9 @@ public class SysTray {
break;
}
}
} catch (Exception e) {
LOGGER.info("Unable to set tray icon: {}", e.getMessage());
}
}
public void dispose() {