mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-23 18:15:22 +00:00
prevent NPE in GroupCreateActivity
Occurs when a returned Recipient is null when returning from contact selection activity. Fixes #2466 // FREEBIE
This commit is contained in:
parent
35dabaf1e5
commit
442f56cdc3
@ -387,8 +387,9 @@ public class GroupCreateActivity extends PassphraseRequiredActionBarActivity {
|
||||
Recipient recipient = RecipientFactory.getRecipientsFromString(this, numberData.number, false)
|
||||
.getPrimaryRecipient();
|
||||
|
||||
if (!selectedContacts.contains(recipient)
|
||||
&& (existingContacts == null || !existingContacts.contains(recipient))) {
|
||||
if (!selectedContacts.contains(recipient) &&
|
||||
(existingContacts == null || !existingContacts.contains(recipient)) &&
|
||||
recipient != null) {
|
||||
addSelectedContact(recipient);
|
||||
}
|
||||
} catch (RecipientFormattingException e) {
|
||||
|
Loading…
Reference in New Issue
Block a user