From d4189c5f22ca38fea273af54777c436ee974bc21 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 27 Feb 2020 14:58:00 +0300 Subject: Send empty PrivateChats list on PMs API --- src/main/java/com/juick/model/PrivateChats.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/main/java/com/juick') 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 users; + + public PrivateChats() { + this.users = Collections.emptyList(); + } + @JsonProperty("pms") public List getUsers() { return users; -- cgit v1.2.3