mirror of
https://github.com/revanced/revanced-patcher
synced 2025-04-22 16:39:49 +02: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
|
package app.revanced.patcher.signature
|
||||||
|
|
||||||
|
import app.revanced.patcher.MethodNotFoundException
|
||||||
import org.jf.dexlib2.Opcode
|
import org.jf.dexlib2.Opcode
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -21,6 +22,11 @@ class MethodSignature(
|
|||||||
* The result of the signature
|
* The result of the signature
|
||||||
*/
|
*/
|
||||||
var result: SignatureResolverResult? = null // TODO: figure out how to get rid of nullable
|
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…
x
Reference in New Issue
Block a user