mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-09-30 00:56:56 +13:00
Fix possible NPE
This commit is contained in:
parent
0f9cae0681
commit
bfef4e1426
1 changed files with 4 additions and 0 deletions
|
@ -124,6 +124,10 @@ public class AppTheme {
|
||||||
}
|
}
|
||||||
|
|
||||||
PlatformThread.runLaterIfNeeded(() -> {
|
PlatformThread.runLaterIfNeeded(() -> {
|
||||||
|
if (AppMainWindow.getInstance() == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var window = AppMainWindow.getInstance().getStage();
|
var window = AppMainWindow.getInstance().getStage();
|
||||||
var scene = window.getScene();
|
var scene = window.getScene();
|
||||||
Pane root = (Pane) scene.getRoot();
|
Pane root = (Pane) scene.getRoot();
|
||||||
|
|
Loading…
Reference in a new issue