diff options
author | Martin Fietz <Martin.Fietz@gmail.com> | 2016-01-26 11:56:33 +0100 |
---|---|---|
committer | Martin Fietz <Martin.Fietz@gmail.com> | 2016-01-26 11:56:33 +0100 |
commit | 495df46ba40e8e031daf7ba1002a7245388f085d (patch) | |
tree | d86809454278102040d60915a77e4a8fafb8cb23 /app | |
parent | d03c85a72fbe8b92aeda5d0027cc47ad7d3cd407 (diff) | |
download | AntennaPod-495df46ba40e8e031daf7ba1002a7245388f085d.zip |
Don't crash when switching from audio to video player
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/fragment/ChaptersFragment.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/ChaptersFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/ChaptersFragment.java index 51e4d801a..ce1d753e8 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/ChaptersFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/ChaptersFragment.java @@ -62,7 +62,7 @@ public class ChaptersFragment extends ListFragment implements AudioplayerContent @Override public void onMediaChanged(Playable media) { - if(this.media == media) { + if(this.media == media || adapter == null) { return; } this.media = media; |