Merge pull request #2587 from jannic/pr
Fix possible NPE accessing image.download_url
This commit is contained in:
commit
f3299e7de2
|
@ -305,9 +305,11 @@ public class Feed extends FeedFile implements FlattrThing, ImageResource {
|
||||||
if (super.compareWithOther(other)) {
|
if (super.compareWithOther(other)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if(other.image != null && !TextUtils.equals(image.download_url, other.image.download_url)) {
|
if (other.image != null) {
|
||||||
|
if (image == null || !TextUtils.equals(image.download_url, other.image.download_url)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (!TextUtils.equals(feedTitle, other.feedTitle)) {
|
if (!TextUtils.equals(feedTitle, other.feedTitle)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue