Prevent NullPointerException

This commit is contained in:
Martin Fietz 2016-03-21 15:51:03 +01:00
parent 4d3fb36e16
commit 0c85447136
2 changed files with 4 additions and 2 deletions

View File

@ -324,7 +324,7 @@ public class Feed extends FeedFile implements FlattrThing, ImageResource {
if (super.compareWithOther(other)) {
return true;
}
if (!title.equals(other.title)) {
if (!TextUtils.equals(title, other.title)) {
return true;
}
if (other.feedIdentifier != null) {

View File

@ -1,5 +1,7 @@
package de.danoeh.antennapod.core.feed;
import android.text.TextUtils;
import java.io.File;
/**
@ -54,7 +56,7 @@ public abstract class FeedFile extends FeedComponent {
if (super.compareWithOther(other)) {
return true;
}
if (!download_url.equals(other.download_url)) {
if (!TextUtils.equals(download_url, other.download_url)) {
return true;
}
return false;