mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-05-16 13:32:27 -04:00
Add null check
This commit is contained in:
parent
cfd2e837e9
commit
e910233b4c
1 changed files with 0 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue