null check on invite object
This commit is contained in:
parent
347389c497
commit
d3e755ceb1
|
@ -423,7 +423,7 @@ public class StartConversationActivity extends XmppActivity implements OnRosterU
|
||||||
}
|
}
|
||||||
|
|
||||||
final Contact contact = account.getRoster().getContact(contactJid);
|
final Contact contact = account.getRoster().getContact(contactJid);
|
||||||
if (invite.getName() != null) {
|
if (invite != null && invite.getName() != null) {
|
||||||
contact.setServerName(invite.getName());
|
contact.setServerName(invite.getName());
|
||||||
}
|
}
|
||||||
if (contact.isSelf()) {
|
if (contact.isSelf()) {
|
||||||
|
|
Loading…
Reference in New Issue