From fa5e993191e80da6068737f668c3adc9c3cae705 Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Fri, 30 Nov 2012 19:32:43 -0800 Subject: [PATCH] Weird NPE --- src/org/thoughtcrime/securesms/ConversationListItem.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/org/thoughtcrime/securesms/ConversationListItem.java b/src/org/thoughtcrime/securesms/ConversationListItem.java index 03afd7c607..4d51688481 100644 --- a/src/org/thoughtcrime/securesms/ConversationListItem.java +++ b/src/org/thoughtcrime/securesms/ConversationListItem.java @@ -131,6 +131,8 @@ public class ConversationListItem extends RelativeLayout { } private void setContactPhoto(final Recipient recipient) { + if (recipient == null) return; + if (isBadgeEnabled()) { contactPhotoBadge.setImageBitmap(recipient.getContactPhoto()); contactPhotoBadge.assignContactFromPhone(recipient.getNumber(), true);