From 5d996def4d3de4e2bfc34562e5a6c7d89a8cddf0 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Fri, 1 Nov 2024 02:47:57 +0100 Subject: [PATCH] fix: Match fingerprint before delegating the match property --- .../kotlin/app/revanced/patcher/patch/BytecodePatchContext.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/app/revanced/patcher/patch/BytecodePatchContext.kt b/src/main/kotlin/app/revanced/patcher/patch/BytecodePatchContext.kt index 5508d014..7060a6ab 100644 --- a/src/main/kotlin/app/revanced/patcher/patch/BytecodePatchContext.kt +++ b/src/main/kotlin/app/revanced/patcher/patch/BytecodePatchContext.kt @@ -80,7 +80,7 @@ class BytecodePatchContext internal constructor(private val config: PatcherConfi * * @throws IllegalStateException If the [Fingerprint] has not been matched. */ - operator fun Fingerprint.getValue(nothing: Nothing?, property: KProperty<*>): Match = _match + operator fun Fingerprint.getValue(nothing: Nothing?, property: KProperty<*>): Match = match ?: throw PatchException("No fingerprint match to delegate to \"${property.name}\".") /**