Skip to content

Commit

Permalink
fix: NPE in LSPConsoleToolWindowPanel when running against latest Zig
Browse files Browse the repository at this point in the history
Language Server builds

Fixes redhat-developer#740
  • Loading branch information
angelozerr committed Jan 12, 2025
1 parent 562d822 commit 8a5df1f
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,10 @@ public void dispose() {
}
}

private static ConsoleViewContentType getContentType(MessageType type) {
private static ConsoleViewContentType getContentType(@Nullable MessageType type) {
if (type == null) {
return ConsoleViewContentType.LOG_INFO_OUTPUT;
}
return switch (type) {
case Error -> ConsoleViewContentType.LOG_ERROR_OUTPUT;
case Info -> ConsoleViewContentType.LOG_INFO_OUTPUT;
Expand Down

0 comments on commit 8a5df1f

Please sign in to comment.