maybe fix this?
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 45s

This commit is contained in:
Lee 2024-07-01 01:26:10 +01:00
parent d372c41c98
commit b1f5db9b2d

@ -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);