Fixed NPE found by blackbox87 ... thanks pal!

This commit is contained in:
Stephan Fuhrmann 2013-07-24 00:39:57 +02:00
parent 6af02c4c13
commit 393f45bda1
1 changed files with 1 additions and 1 deletions

View File

@ -1923,8 +1923,8 @@ public class MessageListFragment extends SherlockFragment implements OnItemClick
holder.position = cursor.getPosition();
if (holder.contactBadge != null) {
holder.contactBadge.assignContactFromEmail(counterpartyAddress.getAddress(), true);
if (counterpartyAddress != null) {
holder.contactBadge.assignContactFromEmail(counterpartyAddress.getAddress(), true);
/*
* At least in Android 2.2 a different background + padding is used when no
* email address is available. ListView reuses the views but QuickContactBadge