From b1f5db9b2da8a148e4d19e00d5100bfed68272c8 Mon Sep 17 00:00:00 2001 From: Liam Date: Mon, 1 Jul 2024 01:26:10 +0100 Subject: [PATCH] maybe fix this? --- .../features/namehistory/profile/user/NameHistoryProfile.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/cc/fascinated/bat/features/namehistory/profile/user/NameHistoryProfile.java b/src/main/java/cc/fascinated/bat/features/namehistory/profile/user/NameHistoryProfile.java index e2f69a2..1205f87 100644 --- a/src/main/java/cc/fascinated/bat/features/namehistory/profile/user/NameHistoryProfile.java +++ b/src/main/java/cc/fascinated/bat/features/namehistory/profile/user/NameHistoryProfile.java @@ -82,7 +82,7 @@ public class NameHistoryProfile extends Serializable { @Override public void load(Document document, Gson gson) { this.nameHistory = new LinkedList<>(); - for (Document trackedNameDocument : document.getList("nameHistory", Document.class)) { + for (Document trackedNameDocument : document.getList("nameHistory", Document.class, new ArrayList<>())) { TrackedName trackedName = new TrackedName(); trackedName.load(trackedNameDocument, gson);