summaryrefslogtreecommitdiffstats
path: root/chips
diff options
context:
space:
mode:
Diffstat (limited to 'chips')
-rw-r--r--chips/src/com/android/ex/chips/BaseRecipientAdapter.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/chips/src/com/android/ex/chips/BaseRecipientAdapter.java b/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
index 8af8d2c..dd74f30 100644
--- a/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
+++ b/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
@@ -798,8 +798,10 @@ public abstract class BaseRecipientAdapter extends BaseAdapter implements Filter
mHandler.post(new Runnable() {
@Override
public void run() {
- mPhotoCacheMap.put(photoThumbnailUri, photoBytes);
- notifyDataSetChanged();
+ if (photoBytes != null) {
+ mPhotoCacheMap.put(photoThumbnailUri, photoBytes);
+ notifyDataSetChanged();
+ }
}
});
}