Fixed crash in getFeedMedia(long, Feed)
This commit is contained in:
parent
fb15cba2cf
commit
1b15ad65b6
|
@ -23,7 +23,7 @@
|
|||
|
||||
<application
|
||||
android:name="de.danoeh.antennapod.PodcastApp"
|
||||
android:debuggable="false"
|
||||
android:debuggable="true"
|
||||
android:icon="@drawable/ic_launcher"
|
||||
android:label="@string/app_name"
|
||||
android:logo="@drawable/ic_launcher"
|
||||
|
|
|
@ -710,7 +710,7 @@ public class FeedManager {
|
|||
public FeedMedia getFeedMedia(long id, Feed feed) {
|
||||
if (feed != null) {
|
||||
for (FeedItem item : feed.getItems()) {
|
||||
if (item.getMedia().getId() == id) {
|
||||
if (item.getMedia() != null && item.getMedia().getId() == id) {
|
||||
return item.getMedia();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue