Add try/catch around offerBookListItems.clear();

This commit is contained in:
Manfred Karrer 2016-05-16 11:26:46 +02:00
parent d7f609a970
commit c1ac65345d

View File

@ -91,7 +91,12 @@ public class OfferBook {
List<Offer> offers = offerBookService.getOffers();
CopyOnWriteArraySet<OfferBookListItem> list = new CopyOnWriteArraySet<>();
offers.stream().forEach(e -> list.add(new OfferBookListItem(e)));
try {
offerBookListItems.clear();
} catch (Throwable t) {
log.error(" offerBookListItems.clear failed " + t.getMessage());
}
offerBookListItems.addAll(list);
log.debug("offerBookListItems " + offerBookListItems.size());