fix(YouTube): App crashes under certain conditions

This commit is contained in:
inotia00 2025-01-22 13:24:00 +09:00
parent f1d04b5323
commit a9f7384929

View File

@ -421,7 +421,10 @@ val videoInformationPatch = bytecodePatch(
# Get the container class field. # Get the container class field.
iget-object v0, v2, $setPlaybackSpeedContainerClassFieldReference iget-object v0, v2, $setPlaybackSpeedContainerClassFieldReference
# For some reason, in YouTube 19.44.39 this value is sometimes null.
if-eqz v0, :ignore
# Get the field from its class. # Get the field from its class.
iget-object v1, v0, $setPlaybackSpeedClassFieldReference iget-object v1, v0, $setPlaybackSpeedClassFieldReference