Merge pull request #1491 from mfietz/issue/1490-npe-gpodnet-episode-action

GpodnetEpisodeAction.<init>: Media mustn't be null
This commit is contained in:
Tom Hennen 2015-12-28 12:08:42 -05:00
commit 6e77d02349
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()