[
https://issues.apache.org/jira/browse/OFBIZ-3926?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jacques Le Roux closed OFBIZ-3926.
----------------------------------
Resolution: Fixed
Assignee: Jacques Le Roux
Thanks Norbert,
Your patch is in trunk at r1062762
BTW some preder longer lines, but I like how you splitted the lines, easier to read IMO
> NPE in EbayOrderServices.createShoppingCart
> -------------------------------------------
>
> Key: OFBIZ-3926
> URL:
https://issues.apache.org/jira/browse/OFBIZ-3926> Project: OFBiz
> Issue Type: Bug
> Components: specialpurpose/ebay
> Affects Versions: SVN trunk
> Reporter: Norbert Rieger
> Assignee: Jacques Le Roux
> Priority: Minor
> Fix For: SVN trunk
>
> Attachments: EbayOrderServices.java.patch
>
>
> Due to missing property "stateProvinceGeoId" in shippingAddressCtx the following call raises an NPE (EbayOrderServices.createShoppingCart, line 1118ff):
> List<GenericValue> shipInfo = PartyWorker.findMatchingPersonPostalAddresses(delegator, shippingAddressCtx.get("shippingAddressStreet1").toString(),
> (UtilValidate.isEmpty(shippingAddressCtx.get("shippingAddressStreet2")) ? null : shippingAddressCtx.get("shippingAddressStreet2").toString()), shippingAddressCtx.get("city").toString(),
> shippingAddressCtx.get("stateProvinceGeoId").toString(), shippingAddressCtx.get("shippingAddressPostalCode").toString(), null, shippingAddressCtx.get("countryGeoId").toString(), firstName, null, lastName);
> Checking whether the property is set (not empty) will solve this.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.