Check that media is not null

This commit is contained in:
Martin Fietz 2015-12-26 18:44:50 +01:00
parent 01b4450deb
commit ca6f982836
1 changed files with 1 additions and 1 deletions

View File

@ -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()