Internal help: Fix crash when no transcoders are installed

This commit is contained in:
François-Xavier Thomas
2020-02-12 21:41:47 +00:00
committed by jvoisin
parent 6a3d301517
commit 73a06879b5
@@ -413,9 +413,9 @@ public class InternalHelpController {
File executableLocation = null;
for (String name: Arrays.asList(executableName, String.format("%s.exe", executableName))) {
executableLocation = new File(transcodingService.getTranscodeDirectory(), name);
if (executableLocation.exists()) return executableLocation;
if (executableLocation != null && executableLocation.exists()) return executableLocation;
executableLocation = lookForExecutable(executableName);
if (executableLocation.exists()) return executableLocation;
if (executableLocation != null && executableLocation.exists()) return executableLocation;
}
return null;
}