summaryrefslogtreecommitdiff
path: root/src/main/java
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 /src/main/java
parent89ce57feec8e4f86329c79246ccaa5d4014413a5 (diff)
downloadjava-language-server-7b976c49e44341a7212e7864a774cd7660c44799.zip
Notification failure
Diffstat (limited to 'src/main/java')
-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));
+ }
}
}
}