mirror of
https://github.com/processing/processing4.git
synced 2026-01-28 02:41:08 +01:00
avoid initial NPE on startup
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user