Fix nullpointer

This commit is contained in:
Manfred Karrer 2016-03-25 01:19:44 +01:00
parent 32e1a5a3ac
commit e73d0cb104

View File

@ -103,7 +103,7 @@ class FiatAccountsDataModel 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)