forked from j62/ctbrec
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) {
|
public void updateActiveRecordings(int activeRecordings) {
|
||||||
try {
|
try {
|
||||||
createTrayIcon();
|
createTrayIcon();
|
||||||
|
if (awtTrayIcon != null) {
|
||||||
awtTrayIcon.setImage(createImage(activeRecordings));
|
awtTrayIcon.setImage(createImage(activeRecordings));
|
||||||
|
}
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
LOG.error("Couldn't update tray icon image", e);
|
LOG.error("Couldn't update tray icon image", e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue