summaryrefslogtreecommitdiff
path: root/ale_linters/java/javac.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ale_linters/java/javac.vim')
-rw-r--r--ale_linters/java/javac.vim2
1 files changed, 2 insertions, 0 deletions
diff --git a/ale_linters/java/javac.vim b/ale_linters/java/javac.vim
index e166bea4..928f555f 100644
--- a/ale_linters/java/javac.vim
+++ b/ale_linters/java/javac.vim
@@ -81,9 +81,11 @@ function! ale_linters#java#javac#GetCommand(buffer, import_paths, meta) abort
endif
let l:sourcepath_item = ale#Var(a:buffer, 'java_javac_sourcepath')
+
if !empty(l:sourcepath_item)
for l:sourcepath in l:sourcepath_item
let l:sp_path = ale#path#FindNearestDirectory(a:buffer, l:sourcepath)
+
if !empty(l:sp_path)
call add(l:sp_dirs, l:sp_path)
endif