Skip to content

Commit 83281c1

Browse files
committed
fix #4019
1 parent 4e8935d commit 83281c1

File tree

1 file changed

+2
-1
lines changed
  • gsyVideoPlayer-java/src/main/java/com/shuyu/gsyvideoplayer/video/base

1 file changed

+2
-1
lines changed

gsyVideoPlayer-java/src/main/java/com/shuyu/gsyvideoplayer/video/base/GSYVideoView.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,8 @@ public void run() {
387387
if (GSYVideoView.this.mReleaseWhenLossAudio) {
388388
GSYVideoView.this.releaseVideos();
389389
} else {
390-
getGSYVideoManager().listener().onVideoPause();
390+
if(getGSYVideoManager().listener() != null)
391+
getGSYVideoManager().listener().onVideoPause();
391392
}
392393

393394
}

0 commit comments

Comments
 (0)