From f53a41ee7ae860424c911360436f8cdd3b540132 Mon Sep 17 00:00:00 2001 From: Christoph Atteneder Date: Wed, 12 Feb 2020 18:05:28 +0100 Subject: [PATCH] Allow NullpointerException to be thrown for invalid offers It is handled properly and will remove offers from being exported --- core/src/main/java/bisq/core/offer/OfferForJson.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/bisq/core/offer/OfferForJson.java b/core/src/main/java/bisq/core/offer/OfferForJson.java index 7bc67f0972c..afac82ae4e6 100644 --- a/core/src/main/java/bisq/core/offer/OfferForJson.java +++ b/core/src/main/java/bisq/core/offer/OfferForJson.java @@ -90,7 +90,7 @@ public OfferForJson(OfferPayload.Direction direction, 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;