Skip to content

Commit 720b7a9

Browse files
committed
Fixed JSONDownloader tests on Windows
1 parent 7852fc1 commit 720b7a9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: arduino-core/src/processing/app/BaseNoGui.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,6 @@ static public File getSettingsFolder() {
294294
String preferencesPath = PreferencesData.get("settings.path");
295295
if (preferencesPath != null) {
296296
settingsFolder = absoluteFile(preferencesPath);
297-
298297
} else {
299298
try {
300299
settingsFolder = getPlatform().getSettingsFolder();
@@ -305,7 +304,7 @@ static public File getSettingsFolder() {
305304
}
306305

307306
// create the folder if it doesn't exist already
308-
if (!settingsFolder.exists()) {
307+
if (settingsFolder != null && !settingsFolder.exists()) {
309308
if (!settingsFolder.mkdirs()) {
310309
showError(tr("Settings issues"),
311310
tr("Arduino cannot run because it could not\n" +

0 commit comments

Comments
 (0)