Weird NPE

This commit is contained in:
Moxie Marlinspike 2012-11-30 19:32:43 -08:00
parent c83d57aa59
commit fa5e993191

View File

@ -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);