diff options
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/javacs/lsp/LSP.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/org/javacs/lsp/LSP.java b/src/main/java/org/javacs/lsp/LSP.java index a63b581..4458ab9 100644 --- a/src/main/java/org/javacs/lsp/LSP.java +++ b/src/main/java/org/javacs/lsp/LSP.java @@ -421,7 +421,9 @@ public class LSP { } } catch (Exception e) { LOG.log(Level.SEVERE, e.getMessage(), e); - respond(send, r.id, new ResponseError(ErrorCodes.InternalError, e.getMessage(), null)); + if (r.id != null) { + respond(send, r.id, new ResponseError(ErrorCodes.InternalError, e.getMessage(), null)); + } } } } |