mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-20 02:12:00 +01:00
don't crash on empty OpenOffers
This commit is contained in:
parent
5752fdc4b6
commit
3570f609a9
@ -82,6 +82,10 @@ public final class TradableList<T extends Tradable> implements PersistableEnvelo
|
||||
Storage<TradableList<SellerAsTakerTrade>> sellerAsTakerTradeStorage,
|
||||
BtcWalletService btcWalletService) {
|
||||
log.debug("TradableList fromProto of {} ", proto);
|
||||
if(proto.getTradableList().size() == 0) {
|
||||
return null;
|
||||
}
|
||||
|
||||
List list = proto.getTradableList().stream().peek(tradable -> log.info(tradable.getClass().toString())).map(tradable -> {
|
||||
log.debug("tradable.getMessageCase(): {}", tradable.getMessageCase());
|
||||
switch (tradable.getMessageCase()) {
|
||||
|
Loading…
Reference in New Issue
Block a user