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:
parent
689bdb69db
commit
43d36c7560
|
@ -154,6 +154,7 @@ public final class DBReader {
|
||||||
Feed feed = feedIndex.get(item.getFeedId());
|
Feed feed = feedIndex.get(item.getFeedId());
|
||||||
if (feed == null) {
|
if (feed == null) {
|
||||||
Log.w(TAG, "No match found for item with ID " + item.getId() + ". Feed ID was " + item.getFeedId());
|
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);
|
item.setFeed(feed);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue