diff --git a/src/main/java/com/redhat/devtools/intellij/lsp4ij/console/LSPConsoleToolWindowPanel.java b/src/main/java/com/redhat/devtools/intellij/lsp4ij/console/LSPConsoleToolWindowPanel.java index ab6f097fc..ee0ed51f3 100644 --- a/src/main/java/com/redhat/devtools/intellij/lsp4ij/console/LSPConsoleToolWindowPanel.java +++ b/src/main/java/com/redhat/devtools/intellij/lsp4ij/console/LSPConsoleToolWindowPanel.java @@ -246,10 +246,16 @@ private void showDetail() { } public void showMessage(String message) { + if (consoleView == null) { + return; + } consoleView.print(message, ConsoleViewContentType.SYSTEM_OUTPUT); } public void showError(Throwable exception) { + if (consoleView == null) { + return; + } String stacktrace = getStackTrace(exception); consoleView.print(stacktrace, ConsoleViewContentType.ERROR_OUTPUT); }