Fixed crash in getFeedMedia(long, Feed)

This commit is contained in:
daniel oeh 2012-08-17 17:08:51 +02:00
parent fb15cba2cf
commit 1b15ad65b6
2 changed files with 2 additions and 2 deletions

View File

@ -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"

View File

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