From e5a87a83aec82983aca549738b02a6e755fedb9a Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Sun, 19 Apr 2026 12:09:35 -0400 Subject: [PATCH] Adds a quick exit to the address parser --- .../com/vitorpamplona/quartz/nip01Core/core/AddressSerializer.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/quartz/src/commonMain/kotlin/com/vitorpamplona/quartz/nip01Core/core/AddressSerializer.kt b/quartz/src/commonMain/kotlin/com/vitorpamplona/quartz/nip01Core/core/AddressSerializer.kt index ec77fae66..80ca91929 100644 --- a/quartz/src/commonMain/kotlin/com/vitorpamplona/quartz/nip01Core/core/AddressSerializer.kt +++ b/quartz/src/commonMain/kotlin/com/vitorpamplona/quartz/nip01Core/core/AddressSerializer.kt @@ -40,6 +40,7 @@ class AddressSerializer { } fun parse(addressId: String): Address? { + if (addressId.length < 66) return null if (addressId.isBlank()) return null return try { val parts = addressId.split(":", limit = 3)