diff options
author | nea <nea@nea.moe> | 2023-09-09 20:51:58 +0200 |
---|---|---|
committer | nea <nea@nea.moe> | 2023-09-09 20:51:58 +0200 |
commit | a4c72d234c47a0d685ef872568c48ffd7865aee9 (patch) | |
tree | 28aecb7a6ffe10074b3c37dcab5c29a80a19cf8a | |
parent | fdd88cff5ba25ed43459bc7cfc60b838e39d281f (diff) | |
download | NotEnoughUpdates-a4c72d234c47a0d685ef872568c48ffd7865aee9.tar.gz NotEnoughUpdates-a4c72d234c47a0d685ef872568c48ffd7865aee9.tar.bz2 NotEnoughUpdates-a4c72d234c47a0d685ef872568c48ffd7865aee9.zip |
Fix NPE
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/profileviewer/bestiary/BestiaryData.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/bestiary/BestiaryData.kt b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/bestiary/BestiaryData.kt index ff2d2288..4829aca1 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/bestiary/BestiaryData.kt +++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/bestiary/BestiaryData.kt @@ -93,7 +93,7 @@ object BestiaryData { val parsedCategories = mutableListOf<Category>() val apiKills = profileInfo.getAsJsonObject("bestiary")!!.getAsJsonObject("kills") ?: return mutableListOf() - val apiDeaths = profileInfo.getAsJsonObject("bestiary").getAsJsonObject("deaths") + val apiDeaths = profileInfo.getAsJsonObject("bestiary").getAsJsonObject("deaths") ?: return mutableListOf() val killsMap: HashMap<String, Int> = HashMap() for (entry in apiKills.entrySet()) { killsMap[entry.key] = entry.value.asInt |