mirror of https://github.com/readrops/Readrops.git
Check is enclosureMime is not null
This commit is contained in:
parent
e1478eab2c
commit
945da48807
|
@ -22,7 +22,7 @@ public final class ItemMatcher {
|
|||
DateTimeZone.getDefault()));
|
||||
item.setContent(nextNewsItem.getBody());
|
||||
|
||||
if (Utils.isTypeImage(nextNewsItem.getEnclosureMime()))
|
||||
if (nextNewsItem.getEnclosureMime() != null && Utils.isTypeImage(nextNewsItem.getEnclosureMime()))
|
||||
item.setImageLink(nextNewsItem.getEnclosureLink());
|
||||
|
||||
item.setLink(nextNewsItem.getUrl());
|
||||
|
|
Loading…
Reference in New Issue