forked from Qortal/qortal
Catch NPE seen a couple of times in Systray.setTrayIcon()
This commit is contained in:
parent
79bbadad2f
commit
9c20967d24
@ -290,6 +290,7 @@ public class SysTray {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void setTrayIcon(int iconid) {
|
public void setTrayIcon(int iconid) {
|
||||||
|
try {
|
||||||
if (trayIcon != null) {
|
if (trayIcon != null) {
|
||||||
switch (iconid) {
|
switch (iconid) {
|
||||||
case 1:
|
case 1:
|
||||||
@ -306,6 +307,9 @@ public class SysTray {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
LOGGER.info("Unable to set tray icon: {}", e.getMessage());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void dispose() {
|
public void dispose() {
|
||||||
|
Loading…
Reference in New Issue
Block a user