File tree 1 file changed +6
-4
lines changed
arduino-core/src/processing/app
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -162,12 +162,14 @@ static public PreferencesMap getBoardPreferences() {
162
162
163
163
// Add all tools dependencies from the (possibily) referenced core
164
164
String core = prefs .get ("build.core" );
165
- if (core .contains (":" )) {
165
+ if (core != null && core .contains (":" )) {
166
166
String split [] = core .split (":" );
167
167
TargetPlatform referenced = BaseNoGui .getCurrentTargetPlatformFromPackage (split [0 ]);
168
- ContributedPlatform referencedPlatform = indexer .getContributedPlaform (referenced );
169
- if (referencedPlatform != null )
170
- requiredTools .addAll (referencedPlatform .getResolvedTools ());
168
+ if (referenced != null ) {
169
+ ContributedPlatform referencedPlatform = indexer .getContributedPlaform (referenced );
170
+ if (referencedPlatform != null )
171
+ requiredTools .addAll (referencedPlatform .getResolvedTools ());
172
+ }
171
173
}
172
174
173
175
String prefix = "runtime.tools." ;
You can’t perform that action at this time.
0 commit comments