dorkbox / SystemTray

Cross-platform SystemTray support for Swing/AWT, macOS, GtkStatusIcon, and AppIndicator on Java 8+
Other
446 stars 58 forks source link

NPE at MenuPeer.add #179

Closed hinca closed 1 year ago

hinca commented 1 year ago

This got reported by our Sentry from a macOS client: NullPointerException: Cannot invoke "dorkbox.systemTray.peer.MenuPeer.add(dorkbox.systemTray.Menu, dorkbox.systemTray.Entry, int)" because "this.peer" is null

I am not sure about steps to reproduce. Stacktrace below:

dorkbox.systemTray.Menu in lambda$add$0 at line 242
dorkbox.systemTray.util.EventDispatch in lambda$runLater$0 at line 46
java.util.concurrent.ThreadPoolExecutor in runWorker
java.util.concurrent.ThreadPoolExecutor$Worker in run
java.lang.Thread in run