Suppress possible error of NullContentException on message.getContent()

This commit is contained in:
Pierre 2017-12-18 17:57:30 +01:00
parent 3a70883eff
commit c0f62d4d72

View File

@ -127,8 +127,9 @@ public class ConversationMessage {
* *
* @return The content * @return The content
*/ */
@NonNull
public String getContent() { public String getContent() {
return content; return content != null ? content : "";
} }
/** /**