Skip to content

Commit 5a9c1e1

Browse files
committed
Fixed warning for fill can be null
1 parent 4eab5b6 commit 5a9c1e1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

it.baeyens.arduino.core/src/it/baeyens/arduino/tools/ArduinoHelpers.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,11 @@ public static void setTheEnvironmentVariables(IProject project, ICConfigurationD
778778
} catch (IOException e1) {
779779
e1.printStackTrace();
780780
}
781-
781+
if (file == null) {
782+
Common.log(new Status(IStatus.ERROR, ArduinoConst.CORE_PLUGIN_ID,
783+
"Your setup has gotten corruptes. Missing config/arduino_eclipse_plugin.txt file."));
784+
return;
785+
}
782786
IPath arduinoEclipsePluginFile = new Path(file.getAbsolutePath());
783787

784788
String boardID = Common.getBuildEnvironmentVariable(confDesc, ArduinoConst.ENV_KEY_JANTJE_BOARD_ID, "");

0 commit comments

Comments
 (0)