Check is enclosureMime is not null

This commit is contained in:
Shinokuni 2019-05-17 15:01:20 +02:00
parent e1478eab2c
commit 945da48807
1 changed files with 1 additions and 1 deletions

View File

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