Fixed crash when item has no feed

Apparently, there are ways to end up with items that have no feed.
This hotfix prevents the app from crashing but it does not solve the
reason for items without feeds.
This commit is contained in:
ByteHamster 2020-09-20 11:52:09 +02:00
parent 689bdb69db
commit 43d36c7560
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);
}