SponsorBlock: Forgot another pesky null check...

This commit is contained in:
polymorphicshade 2020-08-23 15:28:21 -06:00
parent 4bfd2b0bd5
commit 983078168c

View file

@ -870,7 +870,7 @@ public class VideoPlayerImpl extends VideoPlayer
fragmentListener.onMoreOptionsLongClicked();
hideControls(0, 0);
hideSystemUIIfNeeded();
} else if (v.getId() == blockSponsorsButton.getId()) {
} else if (blockSponsorsButton != null && v.getId() == blockSponsorsButton.getId()) {
final MediaSourceTag currentMetadata = getCurrentMetadata();
if (currentMetadata == null) {
return true;