null check on invite object

This commit is contained in:
Christian Schneppe 2018-02-15 19:19:53 +01:00
parent a5176a16f2
commit fdf7ea3c3e

View file

@ -442,7 +442,7 @@ public class StartConversationActivity extends XmppActivity implements OnRosterU
}
final Contact contact = account.getRoster().getContact(contactJid);
if (invite.getName() != null) {
if (invite != null && invite.getName() != null) {
contact.setServerName(invite.getName());
}
if (contact.isSelf()) {