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
Priority: Minor
Fix For: SVN trunk
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.