mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-25 06:25:40 +03:00
Fix crash when externalSignalingServer is empty
Otherwise, following crash happened, as it was tried to deal with the empty url: 2024-09-24 15:10:30.719 17765-17765 WebSocketInstance com.nextcloud.talk2 D restartWebSocket: /spreed 2024-09-24 15:10:30.722 17765-17765 System.err com.nextcloud.talk2 W java.lang.IllegalArgumentException: Expected URL scheme 'http' or 'https' but no scheme was found for /spree... 2024-09-24 15:10:30.723 17765-17765 System.err com.nextcloud.talk2 W at okhttp3.HttpUrl$Builder.parse$okhttp(HttpUrl.kt:1261) Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
66f97567e0
commit
baae1c431e
1 changed files with 3 additions and 1 deletions
|
@ -2448,7 +2448,9 @@ class ChatActivity :
|
|||
}
|
||||
|
||||
override fun onNext(signalingSettingsOverall: SignalingSettingsOverall) {
|
||||
if (signalingSettingsOverall.ocs!!.settings!!.externalSignalingServer == null) {
|
||||
if (signalingSettingsOverall.ocs!!.settings!!.externalSignalingServer == null ||
|
||||
signalingSettingsOverall.ocs!!.settings!!.externalSignalingServer?.isEmpty() == true
|
||||
) {
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue