File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
it.baeyens.arduino.core/src/it/baeyens/arduino/tools Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -648,6 +648,11 @@ private static void setTheEnvironmentVariablesAddtheBoardsTxt(IContributedEnviro
648
648
649
649
// Get the boards section and add all entries to the environment variables
650
650
Map <String , String > boardSectionMap = boardsFile .getSection (boardID );
651
+ if (boardSectionMap == null ) {
652
+ Common .log (new Status (IStatus .WARNING , ArduinoConst .CORE_PLUGIN_ID , "The project "
653
+ + confDesc .getProjectDescription ().getProject ().getName () + " Has an invalid arduino board configuration." ));
654
+ return ;
655
+ }
651
656
for (Entry <String , String > currentPair : boardSectionMap .entrySet ()) {
652
657
// if it is not a menu item add it
653
658
if (!currentPair .getKey ().startsWith ("menu." )) {
You can’t perform that action at this time.
0 commit comments