mirror of https://github.com/noisymime/Arduino.git
Do not bail out if a required tool is not found
Previously a NullPointer exception was thrown. Now the build go on and fails when the recipe cannot be replaced the correct tool path, that is a much more informative error.
This commit is contained in:
parent
910c602546
commit
b4ada94e44
|
@ -184,6 +184,9 @@ public class BaseNoGui {
|
|||
String prefix = "runtime.tools.";
|
||||
for (ContributedTool tool : requiredTools) {
|
||||
File folder = tool.getDownloadableContribution(getPlatform()).getInstalledFolder();
|
||||
if (folder == null) {
|
||||
continue;
|
||||
}
|
||||
String toolPath = folder.getAbsolutePath();
|
||||
prefs.put(prefix + tool.getName() + ".path", toolPath);
|
||||
PreferencesData.set(prefix + tool.getName() + ".path", toolPath);
|
||||
|
|
Loading…
Reference in New Issue