Skip to content

Commit

Permalink
Update PreviewWindowController to prevent exception
Browse files Browse the repository at this point in the history
  • Loading branch information
jperedadnr authored Oct 30, 2024
1 parent 72791a2 commit 4c3d2e0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ public void run() {
}

getScene().setRoot(getRoot());
if (themeStyleSheetsList != null) {
if (themeStyleSheetsList != null && !themeStyleSheetsList.isEmpty()) {
getScene().setUserAgentStylesheet(themeStyleSheetsList.getFirst());
ObservableList<String> newStylesheets = FXCollections.observableArrayList(themeStyleSheetsList);
getScene().getStylesheets().clear();
Expand Down

0 comments on commit 4c3d2e0

Please sign in to comment.