Skip to content

Commit

Permalink
Releases/v0.2.1
Browse files Browse the repository at this point in the history
## Improvements

* Fix NullPointerException in MuxBaseSDKTheoPlayer.handleAdBreakStarted when release has already been called (#27)



Co-authored-by: uyt95 <[email protected]>
Co-authored-by: GitHub <[email protected]>
  • Loading branch information
3 people authored Feb 9, 2024
1 parent b2b6b59 commit 72a33d0
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ public enum PlayerState {
}

private void handleAdBreakStarted(String adId, String adCreativeId) {
if (player.get() == null) {
if (player == null || player.get() == null) {
return;
}

Expand Down Expand Up @@ -669,6 +669,9 @@ protected void playing() {
}

protected void seeking() {
if (player == null || player.get() == null) {
return;
}
if ((state == PlayerState.INIT && player.get().getPlayer().isAutoplay())
|| (isPaused() && numberOfPlayEventsSent < 2 && state == PlayerState.PLAY )
|| state == PlayerState.SEEKING
Expand Down

0 comments on commit 72a33d0

Please sign in to comment.