Fix runtime crash

This commit is contained in:
Armands Malejevs 2022-03-30 15:04:49 +03:00
parent cca2744542
commit 7067afa609

View File

@ -500,6 +500,9 @@ class ReactExoplayerView extends FrameLayout implements
} }
private void stopBufferCheckTimer() { private void stopBufferCheckTimer() {
if (this.bufferCheckTimer == null) {
return;
}
this.bufferCheckTimer.cancel(); this.bufferCheckTimer.cancel();
this.bufferCheckTimer = null; this.bufferCheckTimer = null;
} }