fix NPE for Preferences.get() in Export to Application

This commit is contained in:
Ben Fry
2022-02-12 10:56:55 -05:00
parent a83f54a7df
commit 1bb5b3e60c
2 changed files with 8 additions and 0 deletions
@@ -78,6 +78,7 @@ public class ExportPrompt {
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(","));