Fix possible NPE

This commit is contained in:
crschnick 2024-01-09 01:33:00 +00:00
parent 0f9cae0681
commit bfef4e1426

View file

@ -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();