1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-12-23 00:20:32 +00:00

Fix random NullPointerException when adding video player view

This commit is contained in:
Stypox 2022-07-14 22:14:03 +02:00
parent 8187a3bc04
commit 0e8cc72b13
No known key found for this signature in database
GPG Key ID: 4BDF1B40A49FDD23

View File

@ -1305,7 +1305,7 @@ public final class VideoDetailFragment
}
private void addVideoPlayerView() {
if (!isPlayerAvailable()) {
if (!isPlayerAvailable() || getView() == null) {
return;
}
setHeightThumbnail();