summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--autoload/ale/maven.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/ale/maven.vim b/autoload/ale/maven.vim
index 745f8c93..42735286 100644
--- a/autoload/ale/maven.vim
+++ b/autoload/ale/maven.vim
@@ -25,7 +25,7 @@ function! ale#maven#FindExecutable(buffer) abort
let l:wrapper_cmd = has('unix') ? 'mvnw' : 'mvnw.cmd'
let l:wrapper_path = ale#path#FindNearestFile(a:buffer, l:wrapper_cmd)
- if executable(l:wrapper_path)
+ if !empty(l:wrapper_path) && executable(l:wrapper_path)
return l:wrapper_path
endif