Skip to content

Commit 57bff44

Browse files
author
Federico Fissore
committed
Boards Manager: if a tool is not resolvable, print a warning and DON'T add a null ref
1 parent d9a7b5d commit 57bff44

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arduino-core/src/cc/arduino/contributions/packages/ContributedPlatform.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,9 @@ public void resolveToolsDependencies(Collection<ContributedPackage> packages) {
7878
ContributedTool tool = dep.resolve(packages);
7979
if (tool == null) {
8080
System.err.println("Index error: could not find referenced tool " + dep);
81+
} else {
82+
resolvedTools.add(tool);
8183
}
82-
resolvedTools.add(tool);
8384
}
8485
}
8586

0 commit comments

Comments
 (0)