mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-09-30 00:56:56 +13:00
Fix NPE
This commit is contained in:
parent
f4f3f21a70
commit
c73b7de9a6
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue