Skip to content

Commit b4ada94

Browse files
committed
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.
1 parent 910c602 commit b4ada94

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: arduino-core/src/processing/app/BaseNoGui.java

+3
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,9 @@ static public PreferencesMap getBoardPreferences() {
184184
String prefix = "runtime.tools.";
185185
for (ContributedTool tool : requiredTools) {
186186
File folder = tool.getDownloadableContribution(getPlatform()).getInstalledFolder();
187+
if (folder == null) {
188+
continue;
189+
}
187190
String toolPath = folder.getAbsolutePath();
188191
prefs.put(prefix + tool.getName() + ".path", toolPath);
189192
PreferencesData.set(prefix + tool.getName() + ".path", toolPath);

0 commit comments

Comments
 (0)