mirror of
https://github.com/revanced/revanced-patcher
synced 2024-11-24 05:16:22 +01:00
add: throw on getting result
of MethodSignature
if null
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
This commit is contained in:
parent
1f08da8b2a
commit
c55c62a57e
@ -1,5 +1,6 @@
|
||||
package app.revanced.patcher.signature
|
||||
|
||||
import app.revanced.patcher.MethodNotFoundException
|
||||
import org.jf.dexlib2.Opcode
|
||||
|
||||
/**
|
||||
@ -21,6 +22,11 @@ class MethodSignature(
|
||||
* The result of the signature
|
||||
*/
|
||||
var result: SignatureResolverResult? = null // TODO: figure out how to get rid of nullable
|
||||
get() {
|
||||
return field ?: throw MethodNotFoundException(
|
||||
"Could not resolve required signature ${methodSignatureMetadata.name}"
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user