mirror of
https://github.com/revanced/revanced-integrations.git
synced 2024-09-12 17:26:29 +02:00
fix(YouTube - Hide layout components): Check if bytes
parameter of LayoutComponentsFilter#filterMixPlaylists
for null
This commit is contained in:
parent
8f1d3c493d
commit
3eb07c12dd
@ -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…
Reference in New Issue
Block a user