fix(docker): Catches the detectable exception thrown by resolve java to return a failure instead of an exception.
@@ -83,7 +83,11 @@ public class DockerDetectable extends Detectable {
@Override
public DetectableResult extractable() throws DetectableException {
+ try {
javaExe = javaResolver.resolveJava();
+ } catch (final Exception e) {
+ javaExe = null;
+ }
if (javaExe == null) {
return new ExecutableNotFoundDetectableResult("java");
}
