diff --git a/muxstatssdktheoplayer/src/main/java/com/mux/stats/sdk/muxstats/theoplayer/MuxBaseSDKTheoPlayer.java b/muxstatssdktheoplayer/src/main/java/com/mux/stats/sdk/muxstats/theoplayer/MuxBaseSDKTheoPlayer.java index 1102847..064a19c 100644 --- a/muxstatssdktheoplayer/src/main/java/com/mux/stats/sdk/muxstats/theoplayer/MuxBaseSDKTheoPlayer.java +++ b/muxstatssdktheoplayer/src/main/java/com/mux/stats/sdk/muxstats/theoplayer/MuxBaseSDKTheoPlayer.java @@ -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; } @@ -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