"Should not happen: approved transaction has %d accounts for " +
"currency %s", accounts.size(), currency));
accounts.get(0)
- .setAmount(-emptyAmountAccountBalance.get(currency));
+ .setAmount(-Objects.requireNonNull(
+ emptyAmountAccountBalance.get(currency)));
});
}
else {
"Should not happen: approved transaction has %d accounts for " +
"currency %s", accounts.size(), currency));
accounts.get(0)
- .setAmount(-emptyAmountAccountBalance.get(currency));
+ .setAmount(-Objects.requireNonNull(
+ emptyAmountAccountBalance.get(currency)));
}
}
}