Correctly handle empty contact pictures

This commit is contained in:
str4d
2014-05-15 05:52:21 +00:00
parent b2f3a52582
commit 8b09ec13d6

View File

@@ -40,7 +40,7 @@ public class ContactAdapter extends ArrayAdapter<Contact> {
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());