From 3144ec872ac8651b8c0a9311ae508d5c3cc734ce Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Sat, 9 Apr 2022 04:50:38 +0200 Subject: [PATCH] fix: throwing in case the opcode patterns do not match --- .../revanced/patcher/signature/resolver/SignatureResolver.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/app/revanced/patcher/signature/resolver/SignatureResolver.kt b/src/main/kotlin/app/revanced/patcher/signature/resolver/SignatureResolver.kt index c5b78a70..dd5e10f0 100644 --- a/src/main/kotlin/app/revanced/patcher/signature/resolver/SignatureResolver.kt +++ b/src/main/kotlin/app/revanced/patcher/signature/resolver/SignatureResolver.kt @@ -80,7 +80,7 @@ internal class SignatureResolver( return if (signature.opcodes == null) { PatternScanResult(0, 0) } else { - method.implementation?.instructions?.scanFor(signature.opcodes)!! + method.implementation?.instructions?.scanFor(signature.opcodes) } }