Prevent crash

This commit is contained in:
M66B
2018-11-04 08:14:59 +00:00
parent ac858ced26
commit 4a0326f431

View File

@@ -292,7 +292,7 @@ public class AdapterMessage extends PagedListAdapter<TupleMessageEx, AdapterMess
}
}
if (!photo && identicons) {
if (message.from.length > 0)
if (message.from != null && message.from.length > 0)
ivAvatar.setImageBitmap(Identicon.generate(message.from[0].toString(), dp24, 5, "light".equals(theme)));
else
ivAvatar.setImageDrawable(null);