mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-11 23:57:41 +00:00
Weird NPE
This commit is contained in:
@@ -131,6 +131,8 @@ public class ConversationListItem extends RelativeLayout {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void setContactPhoto(final Recipient recipient) {
|
private void setContactPhoto(final Recipient recipient) {
|
||||||
|
if (recipient == null) return;
|
||||||
|
|
||||||
if (isBadgeEnabled()) {
|
if (isBadgeEnabled()) {
|
||||||
contactPhotoBadge.setImageBitmap(recipient.getContactPhoto());
|
contactPhotoBadge.setImageBitmap(recipient.getContactPhoto());
|
||||||
contactPhotoBadge.assignContactFromPhone(recipient.getNumber(), true);
|
contactPhotoBadge.assignContactFromPhone(recipient.getNumber(), true);
|
||||||
|
Reference in New Issue
Block a user