summaryrefslogtreecommitdiff
path: root/src/test/java/org/javacs/FindReferencesTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java/org/javacs/FindReferencesTest.java')
-rw-r--r--src/test/java/org/javacs/FindReferencesTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/java/org/javacs/FindReferencesTest.java b/src/test/java/org/javacs/FindReferencesTest.java
index e728cc9..bbb14cf 100644
--- a/src/test/java/org/javacs/FindReferencesTest.java
+++ b/src/test/java/org/javacs/FindReferencesTest.java
@@ -21,7 +21,7 @@ public class FindReferencesTest {
params.textDocument = new TextDocumentIdentifier(uri);
params.position = new Position(row - 1, column - 1);
- var locations = server.findReferences(params);
+ var locations = server.findReferences(params).orElse(List.of());
var strings = new ArrayList<String>();
for (var l : locations) {
var fileName = Parser.fileName(l.uri);