diff options
author | orionlee <orionlee@yahoo.com> | 2019-01-11 13:33:25 -0800 |
---|---|---|
committer | orionlee <orionlee@yahoo.com> | 2019-01-11 13:33:25 -0800 |
commit | 9090d697b03bd623c68622c32b3dceabaf4eb9cf (patch) | |
tree | 6a9649ead3a0964c08e5af48d6564d77d74e5b30 /core | |
parent | 5f0a850dd82f6ae0d3c13e8d217a48b905e8909c (diff) | |
download | AntennaPod-9090d697b03bd623c68622c32b3dceabaf4eb9cf.zip |
#2947 - fix app crash in some error case with ExoPlayer.
(It does not address root problems in #2947 though).
Diffstat (limited to 'core')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/service/playback/LocalPSMP.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/service/playback/LocalPSMP.java b/core/src/main/java/de/danoeh/antennapod/core/service/playback/LocalPSMP.java index c7948b157..8884dc0c2 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/service/playback/LocalPSMP.java +++ b/core/src/main/java/de/danoeh/antennapod/core/service/playback/LocalPSMP.java @@ -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 { |