From fcef4342e8bde73945e8315aef6337cc8a8d8572 Mon Sep 17 00:00:00 2001 From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com> Date: Wed, 28 Jun 2023 23:56:03 +0400 Subject: [PATCH] fix: NPE on method lookup (#195) --- .../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() } /**