Fix crash in chat when no user do not have proxy

This commit is contained in:
Erwan Croze 2018-06-05 13:26:42 +02:00
parent 1f449c88af
commit 56445fc96a

View file

@ -491,7 +491,7 @@ public class GroupChatFragment extends Fragment implements ChatRoomListener, Con
//TODO error
return;
}
Address proxyConfigContact = core.getDefaultProxyConfig().getContact();
Address proxyConfigContact = (core.getDefaultProxyConfig() != null) ? core.getDefaultProxyConfig().getContact() : null;
if (proxyConfigContact != null) {
mChatRoom = core.findOneToOneChatRoom(proxyConfigContact, mRemoteSipAddress);
}