From 82b1e66d54bed1e4c335e0515b7ff3ec901fa6f8 Mon Sep 17 00:00:00 2001 From: Lucaskyy Date: Thu, 14 Apr 2022 19:11:38 +0200 Subject: [PATCH] fix: MethodSignature#resolved throwing an exception --- .../app/revanced/patcher/signature/MethodSignature.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/app/revanced/patcher/signature/MethodSignature.kt b/src/main/kotlin/app/revanced/patcher/signature/MethodSignature.kt index b349954..c9ebe16 100644 --- a/src/main/kotlin/app/revanced/patcher/signature/MethodSignature.kt +++ b/src/main/kotlin/app/revanced/patcher/signature/MethodSignature.kt @@ -30,7 +30,11 @@ class MethodSignature( } val resolved: Boolean get() { - return result != null + var resolved = false + try { + resolved = result != null + } catch (_: Exception) {} + return resolved } }