diff options
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/profileviewer/level/task/MiscTaskLevel.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/level/task/MiscTaskLevel.java b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/level/task/MiscTaskLevel.java index c9ba7636..f78052f5 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/level/task/MiscTaskLevel.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/level/task/MiscTaskLevel.java @@ -88,7 +88,7 @@ public class MiscTaskLevel { // abiphone JsonObject leveling = object.getAsJsonObject("leveling"); - if (leveling.has("completed_tasks")) { + if (leveling != null && leveling.has("completed_tasks")) { JsonArray completedTask = leveling.get("completed_tasks").getAsJsonArray(); Stream<JsonElement> stream = StreamSupport.stream(completedTask.spliterator(), true); long activeContacts = stream.map(JsonElement::getAsString).filter(s -> s.startsWith("ABIPHONE_")).count(); |