From 495df46ba40e8e031daf7ba1002a7245388f085d Mon Sep 17 00:00:00 2001 From: Martin Fietz Date: Tue, 26 Jan 2016 11:56:33 +0100 Subject: Don't crash when switching from audio to video player --- app/src/main/java/de/danoeh/antennapod/fragment/ChaptersFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3