Fix NPE in updateActiveRecordings

This commit is contained in:
0xb00bface 2022-04-10 17:46:36 +02:00
parent 83cfee6568
commit a008fff084
1 changed files with 3 additions and 1 deletions

View File

@ -141,7 +141,9 @@ public class TrayIcon {
public void updateActiveRecordings(int activeRecordings) {
try {
createTrayIcon();
awtTrayIcon.setImage(createImage(activeRecordings));
if (awtTrayIcon != null) {
awtTrayIcon.setImage(createImage(activeRecordings));
}
} catch (IOException e) {
LOG.error("Couldn't update tray icon image", e);
}