mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-27 12:00:03 +03:00
Robustness
This commit is contained in:
parent
bfd974f698
commit
e27c5c4507
1 changed files with 2 additions and 1 deletions
|
@ -32,8 +32,9 @@ class JitsiWidgetProperties(private val uriString: String, val stringProvider: S
|
||||||
private val configs: Map<String, String?> by lazy {
|
private val configs: Map<String, String?> by lazy {
|
||||||
configString?.split("&")
|
configString?.split("&")
|
||||||
?.map { it.split("=") }
|
?.map { it.split("=") }
|
||||||
|
?.filter { it.size == 2 }
|
||||||
?.map { (key, value) -> key to URLDecoder.decode(value, "UTF-8") }
|
?.map { (key, value) -> key to URLDecoder.decode(value, "UTF-8") }
|
||||||
?.toMap()
|
?.toMap()
|
||||||
?: mapOf()
|
.orEmpty()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue