Merge pull request #1491 from mfietz/issue/1490-npe-gpodnet-episode-action
GpodnetEpisodeAction.<init>: Media mustn't be null
This commit is contained in:
commit
6e77d02349
|
@ -178,7 +178,7 @@ public class FeedItemMenuHandler {
|
||||||
case R.id.mark_unread_item:
|
case R.id.mark_unread_item:
|
||||||
selectedItem.setPlayed(false);
|
selectedItem.setPlayed(false);
|
||||||
DBWriter.markItemPlayed(selectedItem, FeedItem.UNPLAYED, false);
|
DBWriter.markItemPlayed(selectedItem, FeedItem.UNPLAYED, false);
|
||||||
if(GpodnetPreferences.loggedIn()) {
|
if(GpodnetPreferences.loggedIn() && selectedItem.getMedia() != null) {
|
||||||
GpodnetEpisodeAction actionNew = new GpodnetEpisodeAction.Builder(selectedItem, Action.NEW)
|
GpodnetEpisodeAction actionNew = new GpodnetEpisodeAction.Builder(selectedItem, Action.NEW)
|
||||||
.currentDeviceId()
|
.currentDeviceId()
|
||||||
.currentTimestamp()
|
.currentTimestamp()
|
||||||
|
|
Loading…
Reference in New Issue