avoid initial NPE on startup

This commit is contained in:
Ben Fry
2022-08-02 22:19:16 -04:00
parent e733a0b652
commit da3350bf38

View File

@@ -31,7 +31,7 @@ public class SketchName {
*/
static File nextFolder(File parentDir) {
String approach = Preferences.get("sketch.name.approach");
if (!approach.equals(CLASSIC_NAME)) {
if (!CLASSIC_NAME.equals(approach)) {
File folder = wordsFolder(parentDir, approach);
if (folder != null) {
return folder;