forked from I2P_Developers/i2p.i2p
Handle case where it was an emptyList
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user