Skip to content

Commit 4dab19a

Browse files
committed
Fix NPE in Base
The message is set to null, not empty String
1 parent a349190 commit 4dab19a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/processing/app/Base.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1250,7 +1250,7 @@ protected Editor handleOpen(String path, boolean untitled,
12501250
return editor;
12511251

12521252
} catch (EditorException ee) {
1253-
if (!ee.getMessage().equals("")) { // blank if the user canceled
1253+
if (ee.getMessage() != null) { // null if the user canceled
12541254
Messages.showWarning("Error opening sketch", ee.getMessage(), ee);
12551255
}
12561256
} catch (NoSuchMethodError nsme) {

0 commit comments

Comments
 (0)