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 { ...@@ -192,7 +192,7 @@ public class RealmMessage extends RealmObject {
.setRoomId(rid) .setRoomId(rid)
.setSyncState(syncstate) .setSyncState(syncstate)
.setTimestamp(ts) .setTimestamp(ts)
.setMessage(msg) .setMessage(msg == null ? "" : msg)
.setUser(u != null ? u.asUser() : null) .setUser(u != null ? u.asUser() : null)
.setGroupable(groupable) .setGroupable(groupable)
.setAlias(alias) .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