File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -33,15 +33,16 @@ static File nextFolder(File parentDir) {
33
33
String approach = Preferences .get ("sketch.name.approach" );
34
34
if ((approach != null ) && !CLASSIC .equals (approach )) {
35
35
WordList wl = getWordLists ().get (approach );
36
- //File folder = wordsFolder(parentDir, approach);
37
- File folder = wl .wordsFolder (parentDir );
38
- if (folder == null ) {
39
- Messages .showWarning ("Out of Options" , """
40
- All possible naming combinations have been used.
41
- Use “Preferences” to choose a different naming system,
42
- or restart Processing.""" );
36
+ if (wl != null ) { // just in case the naming scheme no longer available
37
+ File folder = wl .wordsFolder (parentDir );
38
+ if (folder == null ) {
39
+ Messages .showWarning ("Out of Options" , """
40
+ All possible naming combinations have been used.
41
+ Use “Preferences” to choose a different naming system,
42
+ or restart Processing.""" );
43
+ }
44
+ return folder ; // null or otherwise
43
45
}
44
- return folder ; // null or otherwise
45
46
}
46
47
// classic was selected, or fallback due to an error
47
48
return classicFolder (parentDir );
You can’t perform that action at this time.
0 commit comments