Skip to content

Commit

Permalink
fix NPE for Preferences.get() in Export to Application
Browse files Browse the repository at this point in the history
  • Loading branch information
benfry committed Feb 12, 2022
1 parent a83f54a commit 1bb5b3e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions java/src/processing/mode/java/ExportPrompt.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ private ExportPrompt(JavaEditor editor) {
String pref = Preferences.get(EXPORT_VARIANTS);
if (pref == null) {
pref = Platform.getVariant(); // just add myself
Preferences.set(EXPORT_VARIANTS, pref);
}
StringList selectedVariants = new StringList(pref.split(","));

Expand Down
7 changes: 7 additions & 0 deletions todo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ X update to Java 17.0.2+8
X move "Add Examples" to bottom of the Examples window
X remove anachronistic Preferences.save() that happens after opening a sketch
X change cmd-click in window title to point to sketch folder
X prevent NullPointerException on first use of Export to Application
X only showed up if no checkboxes were clicked

change detector
X text in second line of custom dialogs was showing too large
Expand All @@ -21,6 +23,11 @@ X https://github.com/processing/processing4/issues/398
X https://github.com/processing/processing4/pull/400


_ interface zoom now conflicting with the Java 9+ defaults
_ things look terrible (tiny fonts) on Windows, adjusting has weird effects
_ resolve in DefaultPlatform and Toolkit, disable ui in PreferencesFrame


. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .


Expand Down

0 comments on commit 1bb5b3e

Please sign in to comment.