Skip to content

Commit be48c2d

Browse files
committed
a little bulletproofing/simplifying
1 parent 00f6010 commit be48c2d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

app/src/processing/app/Sketch.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -922,9 +922,12 @@ public boolean accept(File file) {
922922
return false;
923923
}
924924
// list of files/folders to be ignored during "save as"
925-
for (String ignorable : mode.getIgnorable()) {
926-
if (name.equals(ignorable)) {
927-
return false;
925+
String[] ignorable = mode.getIgnorable();
926+
if (ignorable != null) {
927+
for (String ignore : ignorable) {
928+
if (name.equals(ignore)) {
929+
return false;
930+
}
928931
}
929932
}
930933
// ignore the extensions for code, since that'll be copied below

0 commit comments

Comments
 (0)