From a9f7384929b94b3b1b94fe69c54b2a3a7c7fbfc3 Mon Sep 17 00:00:00 2001 From: inotia00 <108592928+inotia00@users.noreply.github.com> Date: Wed, 22 Jan 2025 13:24:00 +0900 Subject: [PATCH] fix(YouTube): App crashes under certain conditions --- .../youtube/video/information/VideoInformationPatch.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/patches/src/main/kotlin/app/revanced/patches/youtube/video/information/VideoInformationPatch.kt b/patches/src/main/kotlin/app/revanced/patches/youtube/video/information/VideoInformationPatch.kt index 3cfdfa63a..fa9d1075c 100644 --- a/patches/src/main/kotlin/app/revanced/patches/youtube/video/information/VideoInformationPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/youtube/video/information/VideoInformationPatch.kt @@ -421,7 +421,10 @@ val videoInformationPatch = bytecodePatch( # Get the container class field. 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. iget-object v1, v0, $setPlaybackSpeedClassFieldReference