mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-07-29 17:58:56 -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() {
|
private void updateLockedBalance() {
|
||||||
Coin sum = Coin.valueOf(tradeManager.getLockedTradeStream()
|
Coin sum = Coin.valueOf(tradeManager.getLockedTradeStream()
|
||||||
.mapToLong(trade -> {
|
.mapToLong(trade -> {
|
||||||
//AddressEntry addressEntry = walletService.getOrCreateAddressEntry(trade.getId(), AddressEntry.Context.MULTI_SIG);
|
|
||||||
Coin lockedTradeAmount = walletService.getOrCreateAddressEntry(trade.getId(), AddressEntry.Context.MULTI_SIG).getLockedTradeAmount();
|
Coin lockedTradeAmount = walletService.getOrCreateAddressEntry(trade.getId(), AddressEntry.Context.MULTI_SIG).getLockedTradeAmount();
|
||||||
return lockedTradeAmount != null ? lockedTradeAmount.getValue() : 0;
|
return lockedTradeAmount != null ? lockedTradeAmount.getValue() : 0;
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue