From 82d7300fc0cfb0303c19a574b0e22f7003f8e9f3 Mon Sep 17 00:00:00 2001 From: Jake McGinty Date: Wed, 3 Jun 2015 15:15:59 -0700 Subject: [PATCH] fix NPE when unbinding ConversationItem fixes #3329 fixes #3320 // FREEBIE --- src/org/thoughtcrime/securesms/ConversationItem.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/org/thoughtcrime/securesms/ConversationItem.java b/src/org/thoughtcrime/securesms/ConversationItem.java index 55e8d1e49f..8617df9baa 100644 --- a/src/org/thoughtcrime/securesms/ConversationItem.java +++ b/src/org/thoughtcrime/securesms/ConversationItem.java @@ -166,7 +166,9 @@ public class ConversationItem extends LinearLayout { } public void unbind() { - mediaThumbnail.clear(); + if (mediaThumbnail != null) { + mediaThumbnail.clear(); + } } public MessageRecord getMessageRecord() {