From 8b09ec13d67760511e201b4819fe7e8a9566a0db Mon Sep 17 00:00:00 2001 From: str4d Date: Thu, 15 May 2014 05:52:21 +0000 Subject: [PATCH] Correctly handle empty contact pictures --- src/i2p/bote/android/addressbook/ContactAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/i2p/bote/android/addressbook/ContactAdapter.java b/src/i2p/bote/android/addressbook/ContactAdapter.java index b0df711..22cd7ed 100644 --- a/src/i2p/bote/android/addressbook/ContactAdapter.java +++ b/src/i2p/bote/android/addressbook/ContactAdapter.java @@ -40,7 +40,7 @@ public class ContactAdapter extends ArrayAdapter { TextView name = (TextView) v.findViewById(R.id.contact_name); String pic = contact.getPictureBase64(); - if (pic != null) + if (pic != null && !pic.isEmpty()) picture.setImageBitmap(BoteHelper.decodePicture(pic)); name.setText(contact.getName());