We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7852fc1 commit 720b7a9Copy full SHA for 720b7a9
arduino-core/src/processing/app/BaseNoGui.java
@@ -294,7 +294,6 @@ static public File getSettingsFolder() {
294
String preferencesPath = PreferencesData.get("settings.path");
295
if (preferencesPath != null) {
296
settingsFolder = absoluteFile(preferencesPath);
297
-
298
} else {
299
try {
300
settingsFolder = getPlatform().getSettingsFolder();
@@ -305,7 +304,7 @@ static public File getSettingsFolder() {
305
304
}
306
307
// create the folder if it doesn't exist already
308
- if (!settingsFolder.exists()) {
+ if (settingsFolder != null && !settingsFolder.exists()) {
309
if (!settingsFolder.mkdirs()) {
310
showError(tr("Settings issues"),
311
tr("Arduino cannot run because it could not\n" +
0 commit comments