mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-11-10 11:37:40 +01:00
Solves crash when opening the Relay screen with empty urls as relays.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user