Skip to content

Commit

Permalink
Allow NullpointerException to be thrown for invalid offers
Browse files Browse the repository at this point in the history
It is handled properly and will remove offers from being exported
  • Loading branch information
ripcurlx committed Feb 12, 2020
1 parent e9dd7d6 commit f53a41e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/bisq/core/offer/OfferForJson.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f53a41e

Please sign in to comment.