From 7067afa609e6d7c4e801d0be446d06f082cf1f1c Mon Sep 17 00:00:00 2001 From: Armands Malejevs Date: Wed, 30 Mar 2022 15:04:49 +0300 Subject: [PATCH] Fix runtime crash --- .../main/java/com/brentvatne/exoplayer/ReactExoplayerView.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/android-exoplayer/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java b/android-exoplayer/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java index ea003623..18174c41 100644 --- a/android-exoplayer/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java +++ b/android-exoplayer/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java @@ -500,6 +500,9 @@ class ReactExoplayerView extends FrameLayout implements } private void stopBufferCheckTimer() { + if (this.bufferCheckTimer == null) { + return; + } this.bufferCheckTimer.cancel(); this.bufferCheckTimer = null; }