fix testing if executable is installed

This commit is contained in:
Renaud Pawlak 2020-07-25 13:31:18 +02:00
parent 98d2081afd
commit bbb1bd1ddf

View File

@ -132,7 +132,7 @@ public class ProcessUtil {
return lookupGlobalNpmPackageExecutablePath(NPM_DIR, command)
.orElseThrow(() -> new RuntimeException("Could not locate command " + command));
} else {
return lookupGlobalNpmPackageExecutablePath(NPM_DIR, command).get();
return lookupGlobalNpmPackageExecutablePath(NPM_DIR, command).orElse(null);
}
}