diff options
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(); |