#2947 - fix app crash in some error case with ExoPlayer.

(It does not address root problems in #2947 though).
This commit is contained in:
orionlee 2019-01-11 13:33:25 -08:00
parent 5f0a850dd8
commit 9090d697b0
1 changed files with 1 additions and 1 deletions

View File

@ -991,7 +991,7 @@ public class LocalPSMP extends PlaybackServiceMediaPlayer {
private final MediaPlayer.OnErrorListener audioErrorListener =
(mp, what, extra) -> {
if(mp.canFallback()) {
if(mp != null && mp.canFallback()) {
mp.fallback();
return true;
} else {