mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-11 18:29:05 +01:00
Merge branch '641-rss-feed-entry-comparator-wrongly-assumes-existing-date' into 'master'
Don't crash if an RSS entry has no date Closes #641 See merge request !310
This commit is contained in:
@@ -494,6 +494,11 @@ class FeedManagerImpl implements FeedManager, Client, EventListener {
|
||||
return new Comparator<SyndEntry>() {
|
||||
@Override
|
||||
public int compare(SyndEntry e1, SyndEntry e2) {
|
||||
if (e1.getPublishedDate() == null &&
|
||||
e1.getUpdatedDate() == null) {
|
||||
// we will be ignoring such entries anyway
|
||||
return 0;
|
||||
}
|
||||
Date d1 =
|
||||
e1.getPublishedDate() != null ? e1.getPublishedDate() :
|
||||
e1.getUpdatedDate();
|
||||
|
||||
Reference in New Issue
Block a user