Fixed crash when creating a chat room without default proxy config
This commit is contained in:
parent
813504bb85
commit
807c279e88
2 changed files with 5 additions and 2 deletions
|
@ -88,7 +88,7 @@ android {
|
|||
defaultConfig {
|
||||
minSdkVersion 21
|
||||
targetSdkVersion 29
|
||||
versionCode 4210
|
||||
versionCode 4211
|
||||
versionName "${project.version}"
|
||||
applicationId getPackageName()
|
||||
multiDexEnabled true
|
||||
|
|
|
@ -448,7 +448,10 @@ public class ChatRoomCreationFragment extends Fragment
|
|||
mChatRoom.getLocalAddress(), mChatRoom.getPeerAddress());
|
||||
}
|
||||
} else {
|
||||
ChatRoom chatRoom = core.getChatRoom(address, lpc.getIdentityAddress());
|
||||
ChatRoom chatRoom = null;
|
||||
if (lpc != null) chatRoom = core.getChatRoom(address, lpc.getIdentityAddress());
|
||||
else chatRoom = core.getChatRoom(address);
|
||||
|
||||
if (chatRoom != null) {
|
||||
// Pop back stack so back button takes to the chat rooms list
|
||||
getFragmentManager().popBackStack();
|
||||
|
|
Loading…
Reference in a new issue