diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/com/juick/model/PrivateChats.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/com/juick/model/PrivateChats.java b/src/main/java/com/juick/model/PrivateChats.java index ffe9c169..d386e978 100644 --- a/src/main/java/com/juick/model/PrivateChats.java +++ b/src/main/java/com/juick/model/PrivateChats.java @@ -20,6 +20,7 @@ package com.juick.model; import com.fasterxml.jackson.annotation.JsonProperty; import com.juick.Chat; +import java.util.Collections; import java.util.List; /** @@ -28,6 +29,11 @@ import java.util.List; public class PrivateChats { private List<Chat> users; + + public PrivateChats() { + this.users = Collections.emptyList(); + } + @JsonProperty("pms") public List<Chat> getUsers() { return users; |