mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-24 08:38:51 -05:00
Fixed rare NullPointerException
This commit is contained in:
parent
485a505ca0
commit
dfd47702bc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user