forked from mirror/monocles_chat
NPE
(cherry picked from commit cd8ba055f97d112cdb29110086930067284bb754)
This commit is contained in:
parent
f6f26beb60
commit
9cc974e964
1 changed files with 1 additions and 1 deletions
|
@ -1182,7 +1182,7 @@ public class Message extends AbstractEntity implements AvatarService.Avatarable
|
|||
Drawable thumbnail = thumbnailer == null || cid == null ? null : thumbnailer.getThumbnail(cid);
|
||||
if (thumbnail == null) thumbnail = fallbackImg;
|
||||
if (thumbnail != null) {
|
||||
quote.setSpan(new InlineImageSpan(thumbnail, cid.toString()), 0, 2, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
|
||||
quote.setSpan(new InlineImageSpan(thumbnail, cid == null ? null : cid.toString()), 0, 2, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
|
||||
}
|
||||
}
|
||||
quote.setSpan(new android.text.style.QuoteSpan(), 0, quote.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
|
||||
|
|
Loading…
Reference in a new issue