Skip to content

Commit

Permalink
Check LanguageServer IApplicaiton exists before dereferencing it
Browse files Browse the repository at this point in the history
  • Loading branch information
mickaelistria committed Nov 7, 2022
1 parent 9f8e889 commit 0f7b0aa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public InitializeResult initialize(InitializeParams param) {
}

Integer processId = param.getProcessId();
if (processId != null) {
if (processId != null && JavaLanguageServerPlugin.getLanguageServer() != null) {
JavaLanguageServerPlugin.getLanguageServer().setParentProcessId(processId.longValue());
}

Expand Down

0 comments on commit 0f7b0aa

Please sign in to comment.