diff --git a/src/main/java/org/cryptomator/ui/error/ErrorController.java b/src/main/java/org/cryptomator/ui/error/ErrorController.java index 1fcc1e829..7f43f48d0 100644 --- a/src/main/java/org/cryptomator/ui/error/ErrorController.java +++ b/src/main/java/org/cryptomator/ui/error/ErrorController.java @@ -63,7 +63,7 @@ public class ErrorController implements FxController { private final Environment environment; private final BooleanProperty copiedDetails = new SimpleBooleanProperty(); - private final ObjectProperty matchingErrorDiscussion = new SimpleObjectProperty(); + private final ObjectProperty matchingErrorDiscussion = new SimpleObjectProperty<>(); private final BooleanExpression errorSolutionFound = matchingErrorDiscussion.isNotNull(); private final BooleanProperty isLoadingHttpResponse = new SimpleBooleanProperty(); @@ -101,8 +101,10 @@ public class ErrorController implements FxController { @FXML public void showSolution() { if (matchingErrorDiscussion.isNotNull().get()) { - ErrorDiscussion ed = (ErrorDiscussion) matchingErrorDiscussion.get(); - application.getHostServices().showDocument(ed.url); + var discussion = matchingErrorDiscussion.get(); + if (discussion != null) { + application.getHostServices().showDocument(matchingErrorDiscussion.get().url); + } } }