diff options
author | George Fraser <george@fivetran.com> | 2019-01-03 01:01:51 -0800 |
---|---|---|
committer | George Fraser <george@fivetran.com> | 2019-01-03 01:01:51 -0800 |
commit | 06e1f1188df371f9abfdab57d0e987ab4b8bc244 (patch) | |
tree | 93875466ea8939b116164895b75052c6496aa47f /src/test/java/org/javacs/GotoTest.java | |
parent | d7230f6f2fabcf312a186946851ecea90bd7061c (diff) | |
download | java-language-server-06e1f1188df371f9abfdab57d0e987ab4b8bc244.zip |
Goto definitions/references can fail
Diffstat (limited to 'src/test/java/org/javacs/GotoTest.java')
-rw-r--r-- | src/test/java/org/javacs/GotoTest.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/java/org/javacs/GotoTest.java b/src/test/java/org/javacs/GotoTest.java index e92565c..564071e 100644 --- a/src/test/java/org/javacs/GotoTest.java +++ b/src/test/java/org/javacs/GotoTest.java @@ -171,7 +171,7 @@ public class GotoTest { p.textDocument = document; p.position = position; - var locations = server.gotoDefinition(p); + var locations = server.gotoDefinition(p).orElse(List.of()); var strings = new ArrayList<String>(); for (var l : locations) { var fileName = Paths.get(l.uri).getFileName(); |