Solves crash when opening the Relay screen with empty urls as relays.

This commit is contained in:
Vitor Pamplona 2024-08-26 11:13:10 -04:00
parent 24ea0cabda
commit f3161ada8d

View File

@ -38,6 +38,7 @@ object HexValidator {
fun isHex(hex: String?): Boolean {
if (hex == null) return false
if (hex.isEmpty()) return false
if (hex.length % 2 != 0) return false // must be even
var isHex = true