fix(YouTube/Litho filter): app crashes when buffer array does not exist

This commit is contained in:
inotia00 2023-10-30 00:32:25 +09:00
parent 407068ad14
commit 12872b6163

View File

@ -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"
)
}