fix NPE on log

This commit is contained in:
Domingos Lopes 2016-04-30 20:53:17 -04:00
parent 8bf33732a9
commit 7f2cb44de6
1 changed files with 1 additions and 1 deletions

View File

@ -562,7 +562,7 @@ public abstract class MediaplayerInfoActivity extends MediaplayerActivity implem
private ChaptersFragment chaptersFragment; private ChaptersFragment chaptersFragment;
public void onMediaChanged(Playable media) { public void onMediaChanged(Playable media) {
Log.d(TAG, "media changing to " + media.getEpisodeTitle()); Log.d(TAG, "media changing to " + ((media != null) ? media.getEpisodeTitle() : "null"));
this.media = media; this.media = media;
if(coverFragment != null) { if(coverFragment != null) {
coverFragment.onMediaChanged(media); coverFragment.onMediaChanged(media);