summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Fraser <george@fivetran.com>2019-01-07 00:52:45 -0800
committerGeorge Fraser <george@fivetran.com>2019-01-07 00:52:45 -0800
commit7b976c49e44341a7212e7864a774cd7660c44799 (patch)
tree6b88a72235d00848643801913de80ba5779aebb3
parent89ce57feec8e4f86329c79246ccaa5d4014413a5 (diff)
downloadjava-language-server-7b976c49e44341a7212e7864a774cd7660c44799.zip
Notification failure
-rw-r--r--src/main/java/org/javacs/lsp/LSP.java4
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));
+ }
}
}
}