diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-02-15 19:19:53 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-02-15 19:19:53 +0100 |
commit | fdf7ea3c3e77e8cfbf433cffc99f430834aabf82 (patch) | |
tree | fe24aea96379e1c750281899798cea9c5675ca5a /src/main/java | |
parent | a5176a16f2b593addffec613ae975f04cfbf1c1b (diff) |
null check on invite object
Diffstat (limited to '')
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/StartConversationActivity.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/StartConversationActivity.java b/src/main/java/de/pixart/messenger/ui/StartConversationActivity.java index 30c6b8d97..b66999eac 100644 --- a/src/main/java/de/pixart/messenger/ui/StartConversationActivity.java +++ b/src/main/java/de/pixart/messenger/ui/StartConversationActivity.java @@ -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()) { |