diff options
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/FairySouls.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/FairySouls.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/FairySouls.java index a3717f32..75f1b427 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/FairySouls.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/FairySouls.java @@ -323,6 +323,9 @@ public class FairySouls { //noinspection UnstableApiUsage Type multiProfileSoulsType = new TypeToken<HashMap<String, HashMap<String, Set<Integer>>>>() {}.getType(); allProfilesFoundSouls = gson.fromJson(fileContent, multiProfileSoulsType); + if (allProfilesFoundSouls == null){ + allProfilesFoundSouls = new HashMap<>(); + } } catch (JsonSyntaxException e) { //The file is in the old format, convert it to the new one and set the profile to unknown try { |