I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 75d599e0 authored by zzz's avatar zzz
Browse files

Handle case where it was an emptyList

parent efd953f3
No related branches found
No related tags found
No related merge requests found
......@@ -56,7 +56,10 @@ public class NewsFeedHelper extends HelperBase {
if (init != null) {
// crude check to see if it's already in there
if (entries.size() != 1 || !DataHelper.eq(entries.get(0).title, init.title))
entries.add(init);
if (entries.isEmpty())
entries = Collections.singletonList(init); // in case it was an emtpyList
else
entries.add(init);
}
}
}
......
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