mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fixed wrong condition in the default implementation of ExecutableValidator.isExecutableValid
This commit is contained in:
@@ -109,7 +109,7 @@ public abstract class ExecutableValidator {
|
||||
commandLine.setExePath(executable);
|
||||
CapturingProcessHandler handler = new CapturingProcessHandler(commandLine.createProcess(), CharsetToolkit.getDefaultSystemCharset());
|
||||
ProcessOutput result = handler.runProcess(60 * 1000);
|
||||
return !result.isTimeout() && (result.getExitCode() != 0) && result.getStderr().isEmpty();
|
||||
return !result.isTimeout() && (result.getExitCode() == 0) && result.getStderr().isEmpty();
|
||||
} catch (Throwable e) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user