Fix NPE in updateActiveRecordings
This commit is contained in:
parent
83cfee6568
commit
a008fff084
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue