From 43066d800007e19eb919e5b8a7ac85a83e997db3 Mon Sep 17 00:00:00 2001 From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com> Date: Wed, 28 Jun 2023 22:59:33 +0400 Subject: [PATCH] fix for exception if signature type is weird and none methods exist that match. --- .../patcher/fingerprint/method/impl/MethodFingerprint.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/app/revanced/patcher/fingerprint/method/impl/MethodFingerprint.kt b/src/main/kotlin/app/revanced/patcher/fingerprint/method/impl/MethodFingerprint.kt index d749baa6..ba19e8d0 100644 --- a/src/main/kotlin/app/revanced/patcher/fingerprint/method/impl/MethodFingerprint.kt +++ b/src/main/kotlin/app/revanced/patcher/fingerprint/method/impl/MethodFingerprint.kt @@ -207,7 +207,7 @@ abstract class MethodFingerprint( append(returnTypeValue.first()) if (parameters != null) appendParameters(parameters) } - return methodSignatureLookupMap[key]!! + return methodSignatureLookupMap[key] ?: return emptyList() } /**