mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-03-26 17:52:29 +01:00
Solves crash when opening the Relay screen with empty urls as relays.
This commit is contained in:
parent
24ea0cabda
commit
f3161ada8d
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user