1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-27 19:52:17 -05:00

Fixed rare NullPointerException

This commit is contained in:
cketti 2012-02-14 00:27:28 +01:00
parent 485a505ca0
commit dfd47702bc

View File

@ -48,7 +48,7 @@ public class EmailAddressAdapter extends ResourceCursorAdapter {
final String name = mContacts.getName(cursor);
final String address = mContacts.getEmail(cursor);
return new Address(address, name).toString();
return (address == null) ? "" : new Address(address, name).toString();
}
@Override