Commit 82847d85 authored by Leonardo Aramaki's avatar Leonardo Aramaki

Fallback to an empty String whenever loading a null message

parent 0c7a5148
......@@ -192,7 +192,7 @@ public class RealmMessage extends RealmObject {
.setRoomId(rid)
.setSyncState(syncstate)
.setTimestamp(ts)
.setMessage(msg)
.setMessage(msg == null ? "" : msg)
.setUser(u != null ? u.asUser() : null)
.setGroupable(groupable)
.setAlias(alias)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment