diff --git a/briar-core/src/org/briarproject/feed/FeedManagerImpl.java b/briar-core/src/org/briarproject/feed/FeedManagerImpl.java index d0baff13791bb1bfb7018f245aa95f7f43b077b2..6384f06c034b5b6e2eb362d06f95bbb4d410602e 100644 --- a/briar-core/src/org/briarproject/feed/FeedManagerImpl.java +++ b/briar-core/src/org/briarproject/feed/FeedManagerImpl.java @@ -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();