Skip to content
Snippets Groups Projects
Verified Commit 448bf863 authored by Torsten Grote's avatar Torsten Grote
Browse files

don't crash if an RSS entry has no date

parent 91e529a9
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment