fix NPE on log
This commit is contained in:
parent
8bf33732a9
commit
7f2cb44de6
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue