Merge pull request #1902 from domingos86/fix-log-NPE

fix NPE on log
This commit is contained in:
Tom Hennen 2016-05-01 08:12:16 -04:00
commit c4b0df6f09
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;
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;
if(coverFragment != null) {
coverFragment.onMediaChanged(media);