diff options
author | George Fraser <george@fivetran.com> | 2019-01-07 00:52:45 -0800 |
---|---|---|
committer | George Fraser <george@fivetran.com> | 2019-01-07 00:52:45 -0800 |
commit | 7b976c49e44341a7212e7864a774cd7660c44799 (patch) | |
tree | 6b88a72235d00848643801913de80ba5779aebb3 /src | |
parent | 89ce57feec8e4f86329c79246ccaa5d4014413a5 (diff) | |
download | java-language-server-7b976c49e44341a7212e7864a774cd7660c44799.zip |
Notification failure
Diffstat (limited to 'src')
-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)); + } } } } |