From 06e1f1188df371f9abfdab57d0e987ab4b8bc244 Mon Sep 17 00:00:00 2001 From: George Fraser Date: Thu, 3 Jan 2019 01:01:51 -0800 Subject: Goto definitions/references can fail --- src/test/java/org/javacs/GotoTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/test/java/org/javacs/GotoTest.java') 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(); for (var l : locations) { var fileName = Paths.get(l.uri).getFileName(); -- cgit v1.2.3