Fix null pointer

This commit is contained in:
Manfred Karrer 2016-03-28 01:00:07 +02:00
parent e73d0cb104
commit 5a1b95668f

View File

@ -103,7 +103,7 @@ class AltCoinAccountsDataModel extends ActivatableDataModel {
.isPresent();
isPaymentAccountUsed = isPaymentAccountUsed || tradeManager.getTrades().stream()
.filter(t -> t.getOffer().getOffererPaymentAccountId().equals(paymentAccount.getId()) ||
t.getTakerPaymentAccountId().equals(paymentAccount.getId()))
paymentAccount.getId().equals(t.getTakerPaymentAccountId()))
.findAny()
.isPresent();
if (!isPaymentAccountUsed)