Add nullable annotation

This commit is contained in:
Christoph Atteneder 2018-06-25 12:09:40 +02:00
parent a323e2d9b9
commit a16f6a8e53
No known key found for this signature in database
GPG key ID: CD5DC1C529CDFD3B

View file

@ -89,6 +89,8 @@ import java.util.List;
import java.util.Optional;
import java.util.UUID;
import javax.annotation.Nullable;
import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.base.Preconditions.checkNotNull;
@ -245,6 +247,8 @@ public abstract class EditableOfferDataModel extends OfferDataModel implements B
fillPaymentAccounts();
PaymentAccount account;
@Nullable
PaymentAccount lastSelectedPaymentAccount = getPreselectedPaymentAccount();
if (lastSelectedPaymentAccount != null &&
user.getPaymentAccounts() != null &&