Don't crash when switching from audio to video player

This commit is contained in:
Martin Fietz 2016-01-26 11:56:33 +01:00
parent d03c85a72f
commit 495df46ba4
1 changed files with 1 additions and 1 deletions

View File

@ -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;