mirror of
https://github.com/revanced/revanced-integrations.git
synced 2025-01-21 01:07:32 +01:00
fix(YouTube - Hide layout components): Check if bytes
parameter of LayoutComponentsFilter#filterMixPlaylists
for null
This commit is contained in:
parent
ce0bedc5d3
commit
abfbb0d7d5
@ -247,7 +247,12 @@ public final class LayoutComponentsFilter extends Filter {
|
|||||||
* Injection point.
|
* Injection point.
|
||||||
* Called from a different place then the other filters.
|
* Called from a different place then the other filters.
|
||||||
*/
|
*/
|
||||||
public static boolean filterMixPlaylists(final Object conversionContext, final byte[] bytes) {
|
public static boolean filterMixPlaylists(final Object conversionContext, @Nullable final byte[] bytes) {
|
||||||
|
if (bytes == null) {
|
||||||
|
LogHelper.printDebug(() -> "bytes is null");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// Prevent playlist items being hidden, if a mix playlist is present in it.
|
// Prevent playlist items being hidden, if a mix playlist is present in it.
|
||||||
if (mixPlaylistsExceptions.matches(conversionContext.toString()))
|
if (mixPlaylistsExceptions.matches(conversionContext.toString()))
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user