File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
arduino-core/src/processing/app Expand file tree Collapse file tree 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() {
162162
163163 // Add all tools dependencies from the (possibily) referenced core
164164 String core = prefs .get ("build.core" );
165- if (core .contains (":" )) {
165+ if (core != null && core .contains (":" )) {
166166 String split [] = core .split (":" );
167167 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+ }
171173 }
172174
173175 String prefix = "runtime.tools." ;
You can’t perform that action at this time.
0 commit comments