From 0dbd058099400e01363b8fbc2cf5d3319e3303ec Mon Sep 17 00:00:00 2001 From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com> Date: Mon, 23 Jun 2025 13:15:43 +0400 Subject: [PATCH] fix(YouTube): Fix refactoring app startup exception --- .../youtube/patches/components/LithoFilterPatch.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/youtube/src/main/java/app/revanced/extension/youtube/patches/components/LithoFilterPatch.java b/extensions/youtube/src/main/java/app/revanced/extension/youtube/patches/components/LithoFilterPatch.java index 552304724..09117f040 100644 --- a/extensions/youtube/src/main/java/app/revanced/extension/youtube/patches/components/LithoFilterPatch.java +++ b/extensions/youtube/src/main/java/app/revanced/extension/youtube/patches/components/LithoFilterPatch.java @@ -90,8 +90,6 @@ public final class LithoFilterPatch { */ private static final int LITHO_LAYOUT_THREAD_POOL_SIZE = 1; - private static final byte[] EMPTY_BYTE_ARRAY = new byte[0]; - /** * Placeholder for actual filters. */ @@ -104,6 +102,8 @@ public final class LithoFilterPatch { private static final StringTrieSearch pathSearchTree = new StringTrieSearch(); private static final StringTrieSearch identifierSearchTree = new StringTrieSearch(); + private static final byte[] EMPTY_BYTE_ARRAY = new byte[0]; + /** * Because litho filtering is multi-threaded and the buffer is passed in from a different injection point, * the buffer is saved to a ThreadLocal so each calling thread does not interfere with other threads.