Allow NullpointerException to be thrown for invalid offers

It is handled properly and will remove offers from being exported
This commit is contained in:
Christoph Atteneder 2020-02-12 18:05:28 +01:00
parent e9dd7d6fed
commit f53a41ee7a
No known key found for this signature in database
GPG key ID: CD5DC1C529CDFD3B

View file

@ -90,7 +90,7 @@ public class OfferForJson {
this.currencyCode = currencyCode;
this.minAmount = minAmount.value;
this.amount = amount.value;
this.price = price != null ? price.getValue() : 0;
this.price = price.getValue();
this.date = date.getTime();
this.id = id;
this.useMarketBasedPrice = useMarketBasedPrice;