Merge pull request #4439 from ByteHamster/item-without-feed-hotfix

Fixed crash when item has no feed
This commit is contained in:
H. Lehmann 2020-09-20 12:32:39 +02:00 committed by GitHub
commit 746190106f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -154,6 +154,7 @@ public final class DBReader {
Feed feed = feedIndex.get(item.getFeedId());
if (feed == null) {
Log.w(TAG, "No match found for item with ID " + item.getId() + ". Feed ID was " + item.getFeedId());
feed = new Feed("", "", "Error: Item without feed");
}
item.setFeed(feed);
}