diff --git a/core/android/src/main/kotlin/com/walletconnect/android/pairing/client/PairingProtocol.kt b/core/android/src/main/kotlin/com/walletconnect/android/pairing/client/PairingProtocol.kt index 2327b1955..0c5e3521b 100644 --- a/core/android/src/main/kotlin/com/walletconnect/android/pairing/client/PairingProtocol.kt +++ b/core/android/src/main/kotlin/com/walletconnect/android/pairing/client/PairingProtocol.kt @@ -122,7 +122,11 @@ internal class PairingProtocol(private val koinApp: KoinApplication = wcKoinApp) } override fun validatePairingUri(uri: String): Boolean { - return Validator.validateWCUri(uri) != null + return try { + Validator.validateWCUri(uri) != null + } catch (e: Exception) { + false + } } private suspend fun awaitConnection(onConnection: () -> Unit, errorLambda: (Throwable) -> Unit = {}) {