File tree Expand file tree Collapse file tree
NetLicensingClient/src/main/java/com/labs64/netlicensing/schema/converter Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -49,7 +49,9 @@ public Product convert(final Item source) throws ConversionException {
4949 final ProductDiscountImpl productDiscount = new ProductDiscountImpl ();
5050 final Money price = convertPrice (list .getProperty (), Constants .Product .Discount .TOTAL_PRICE );
5151 productDiscount .setTotalPrice (price .getAmount ());
52- productDiscount .setCurrency (price .getCurrencyCode ());
52+ if (price .getCurrencyCode () != null ) {
53+ productDiscount .setCurrency (price .getCurrencyCode ());
54+ }
5355 if (SchemaFunction .propertyByName (list .getProperty (), Constants .Product .Discount .AMOUNT_FIX ).getValue () != null ) {
5456 final Money amountFix = convertPrice (list .getProperty (), Constants .Product .Discount .AMOUNT_FIX );
5557 productDiscount .setAmountFix (amountFix .getAmount ());
You can’t perform that action at this time.
0 commit comments