null check on invite object

This commit is contained in:
Daniel Gultsch 2018-02-13 15:20:30 +01:00
parent 347389c497
commit d3e755ceb1

View file

@ -423,7 +423,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()) {