mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-05-21 16:57:18 +02:00
fix(YouTube/Litho filter): app crashes when buffer array does not exist
This commit is contained in:
parent
407068ad14
commit
12872b6163
@ -31,10 +31,11 @@ object LithoFilterPatch : BytecodePatch(
|
||||
private var filterCount = 0
|
||||
override fun execute(context: BytecodeContext) {
|
||||
|
||||
// ByteBuffer is set after checking for non-null
|
||||
GeneralByteBufferFingerprint.result?.let {
|
||||
it.mutableMethod.apply {
|
||||
addInstruction(
|
||||
0,
|
||||
2,
|
||||
"invoke-static { p2 }, $INTEGRATIONS_CLASS_DESCRIPTOR->setProtoBuffer(Ljava/nio/ByteBuffer;)V"
|
||||
)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user