Changeset 75d599e


Ignore:
Timestamp:
Nov 13, 2016 4:11:19 PM (3 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
16a551f7
Parents:
efd953f
Message:

Handle case where it was an emptyList

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/routerconsole/java/src/net/i2p/router/web/NewsFeedHelper.java

    refd953f r75d599e  
    5757                    // crude check to see if it's already in there
    5858                    if (entries.size() != 1 || !DataHelper.eq(entries.get(0).title, init.title))
    59                         entries.add(init);
     59                        if (entries.isEmpty())
     60                            entries = Collections.singletonList(init);  // in case it was an emtpyList
     61                        else
     62                            entries.add(init);
    6063                }
    6164            }
Note: See TracChangeset for help on using the changeset viewer.