1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-01-19 08:52:15 +01:00

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:
Cristian Maglie 2016-08-03 18:51:08 +02:00
parent 910c602546
commit b4ada94e44

View File

@ -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);