Skip to content
This repository has been archived by the owner on Oct 26, 2024. It is now read-only.

Commit

Permalink
fix(YouTube - Hide layout components): Check if bytes parameter of …
Browse files Browse the repository at this point in the history
…`LayoutComponentsFilter#filterMixPlaylists` for null
  • Loading branch information
oSumAtrIX committed Nov 19, 2023
1 parent 8f1d3c4 commit 3eb07c1
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,12 @@ public boolean isFiltered(@Nullable String identifier, String path, byte[] proto
* Injection point.
* 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.
if (mixPlaylistsExceptions.matches(conversionContext.toString()))
return false;
Expand Down

0 comments on commit 3eb07c1

Please sign in to comment.