1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-15 14:05:05 -05:00

Fixed rare NullPointerException

This commit is contained in:
cketti 2012-02-14 00:27:28 +01:00
parent 15151aa32a
commit 2a27f5005b

View File

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