fix ContactSelectionListItem NPE

Fixes #4394
Closes #4399
// FREEBIE
pull/1/head
Jake McGinty 10 years ago committed by Moxie Marlinspike
parent 00a18f58a7
commit 796940bda5

@ -58,7 +58,9 @@ public class ContactSelectionListItem extends RelativeLayout implements Recipien
} else if (!TextUtils.isEmpty(number)) {
this.recipients = RecipientFactory.getRecipientsFromString(getContext(), number, true);
if (this.recipients.getPrimaryRecipient().getName() != null) {
if (this.recipients.getPrimaryRecipient() != null &&
this.recipients.getPrimaryRecipient().getName() != null)
{
name = this.recipients.getPrimaryRecipient().getName();
}

Loading…
Cancel
Save