mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-09-25 18:05:39 +00:00
Fix NPE
This commit is contained in:
@@ -75,6 +75,11 @@ public class BrowserQuickAccessContextMenu extends ContextMenu {
|
||||
updateMenuItems(r, entry, true);
|
||||
Platform.runLater(() -> {
|
||||
getItems().addAll(r.getItems());
|
||||
|
||||
// Prevent NPE in show()
|
||||
if (getScene() == null) {
|
||||
return;
|
||||
}
|
||||
show(anchor, Side.RIGHT, 0, 0);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user