Merge pull request #4269 from nextcloud/backport/4265/stable-20.0

[stable-20.0] Fix crash when externalSignalingServer is empty
This commit is contained in:
Marcel Hibbe 2024-09-25 11:26:09 +02:00 committed by GitHub
commit bd65cad681
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2448,7 +2448,9 @@ class ChatActivity :
} }
override fun onNext(signalingSettingsOverall: SignalingSettingsOverall) { override fun onNext(signalingSettingsOverall: SignalingSettingsOverall) {
if (signalingSettingsOverall.ocs!!.settings!!.externalSignalingServer == null) { if (signalingSettingsOverall.ocs!!.settings!!.externalSignalingServer == null ||
signalingSettingsOverall.ocs!!.settings!!.externalSignalingServer?.isEmpty() == true
) {
return return
} }