mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-20 02:12:00 +01:00
Add null check
This commit is contained in:
parent
cfd2e837e9
commit
e910233b4c
@ -864,7 +864,6 @@ public class MainViewModel implements ViewModel {
|
||||
private void updateLockedBalance() {
|
||||
Coin sum = Coin.valueOf(tradeManager.getLockedTradeStream()
|
||||
.mapToLong(trade -> {
|
||||
//AddressEntry addressEntry = walletService.getOrCreateAddressEntry(trade.getId(), AddressEntry.Context.MULTI_SIG);
|
||||
Coin lockedTradeAmount = walletService.getOrCreateAddressEntry(trade.getId(), AddressEntry.Context.MULTI_SIG).getLockedTradeAmount();
|
||||
return lockedTradeAmount != null ? lockedTradeAmount.getValue() : 0;
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user