Check that media is not null
This commit is contained in:
parent
01b4450deb
commit
ca6f982836
|
@ -178,7 +178,7 @@ public class FeedItemMenuHandler {
|
|||
case R.id.mark_unread_item:
|
||||
selectedItem.setPlayed(false);
|
||||
DBWriter.markItemPlayed(selectedItem, FeedItem.UNPLAYED, false);
|
||||
if(GpodnetPreferences.loggedIn()) {
|
||||
if(GpodnetPreferences.loggedIn() && selectedItem.getMedia() != null) {
|
||||
GpodnetEpisodeAction actionNew = new GpodnetEpisodeAction.Builder(selectedItem, Action.NEW)
|
||||
.currentDeviceId()
|
||||
.currentTimestamp()
|
||||
|
|
Loading…
Reference in New Issue