diff options
author | Lulonaut <67191924+Lulonaut@users.noreply.github.com> | 2022-06-22 14:41:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-22 14:41:33 +0200 |
commit | 46af1e2f1ec54f44940d72de3c2cb0bc6acccc43 (patch) | |
tree | a668c1d4ee3c104b473e3a34c54496e4af2ed6a2 /src/main/java | |
parent | f34220a92af85a33d979edb24ac5c3e698498fe3 (diff) | |
download | NotEnoughUpdates-46af1e2f1ec54f44940d72de3c2cb0bc6acccc43.tar.gz NotEnoughUpdates-46af1e2f1ec54f44940d72de3c2cb0bc6acccc43.tar.bz2 NotEnoughUpdates-46af1e2f1ec54f44940d72de3c2cb0bc6acccc43.zip |
fairy crash (#171)
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 { |