diff --git a/src/main/java/sh/ball/gui/controller/ProjectSelectController.java b/src/main/java/sh/ball/gui/controller/ProjectSelectController.java index 16fca38..23c99fa 100644 --- a/src/main/java/sh/ball/gui/controller/ProjectSelectController.java +++ b/src/main/java/sh/ball/gui/controller/ProjectSelectController.java @@ -62,7 +62,10 @@ public class ProjectSelectController implements Initializable { recentFilesListView.setItems(recentFiles); recentFilesListView.setOnMouseClicked(e -> { try { - launchMainApplication.accept(recentFilesListView.getSelectionModel().getSelectedItem(), startMutedCheckBox.isSelected()); + String selectedItem = recentFilesListView.getSelectionModel().getSelectedItem(); + if (selectedItem != null) { + launchMainApplication.accept(selectedItem, startMutedCheckBox.isSelected()); + } } catch (Exception ex) { logger.log(Level.SEVERE, ex.getMessage(), ex); } diff --git a/src/main/resources/fxml/projectSelect.fxml b/src/main/resources/fxml/projectSelect.fxml index a212bab..fa49e0a 100644 --- a/src/main/resources/fxml/projectSelect.fxml +++ b/src/main/resources/fxml/projectSelect.fxml @@ -14,19 +14,19 @@ - + - + -