Skip to content

Commit

Permalink
Fix random NullPointerException when adding video player view
Browse files Browse the repository at this point in the history
  • Loading branch information
Stypox committed Jul 14, 2022
1 parent 8187a3b commit 0e8cc72
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1305,7 +1305,7 @@ private boolean isAutoplayEnabled() {
}

private void addVideoPlayerView() {
if (!isPlayerAvailable()) {
if (!isPlayerAvailable() || getView() == null) {
return;
}
setHeightThumbnail();
Expand Down

0 comments on commit 0e8cc72

Please sign in to comment.