mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-09-20 18:19:06 -04:00
Fix possible NPE
This commit is contained in:
1 parent
0f9cae0681
commit
bfef4e1426
1 file changed
+4
@@ -124,6 +124,10 @@ public class AppTheme {
|
||||
}
|
||||
|
||||
PlatformThread.runLaterIfNeeded(() -> {
|
||||
if (AppMainWindow.getInstance() == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
var window = AppMainWindow.getInstance().getStage();
|
||||
var scene = window.getScene();
|
||||
Pane root = (Pane) scene.getRoot();
|
||||
|
||||
Reference in new issue
Block a user