forked from Fascinated/Bat
maybe fix this?
This commit is contained in:
parent
d372c41c98
commit
b1f5db9b2d
@ -82,7 +82,7 @@ public class NameHistoryProfile extends Serializable {
|
|||||||
@Override
|
@Override
|
||||||
public void load(Document document, Gson gson) {
|
public void load(Document document, Gson gson) {
|
||||||
this.nameHistory = new LinkedList<>();
|
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 trackedName = new TrackedName();
|
||||||
trackedName.load(trackedNameDocument, gson);
|
trackedName.load(trackedNameDocument, gson);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user