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:
parent
15151aa32a
commit
2a27f5005b
@ -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