summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/javacs/JavaCompilerService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/javacs/JavaCompilerService.java b/src/main/java/org/javacs/JavaCompilerService.java
index 0a6a136..2d380a1 100644
--- a/src/main/java/org/javacs/JavaCompilerService.java
+++ b/src/main/java/org/javacs/JavaCompilerService.java
@@ -143,9 +143,9 @@ public class JavaCompilerService {
for (var uri : uris) {
if (SourcePath.isJavaFile(uri)) {
files.add(new File(uri));
- ;
}
}
+ if (files.isEmpty()) return List.of();
// TODO should get current contents of open files from FileStore
var sources = fileManager.getJavaFileObjectsFromFiles(files);