Commit 447bca2f authored by Grigory Fedorov's avatar Grigory Fedorov

ContactList: possible null pointer crash fixed.

parent 3928ba3c
...@@ -475,6 +475,11 @@ public class ContactList extends ManagedActivity implements OnAccountChangedList ...@@ -475,6 +475,11 @@ public class ContactList extends ManagedActivity implements OnAccountChangedList
@Override @Override
public void onContactClick(AbstractContact abstractContact) { public void onContactClick(AbstractContact abstractContact) {
if (action == null) {
startActivity(ChatViewer.createIntent(this,
abstractContact.getAccount(), abstractContact.getUser()));
return;
}
switch (action) { switch (action) {
case ACTION_ROOM_INVITE: { case ACTION_ROOM_INVITE: {
action = null; action = null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment