[jira] Created: (OFBIZ-3926) NPE in EbayOrderServices.createShoppingCart

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (OFBIZ-3926) NPE in EbayOrderServices.createShoppingCart

Nicolas Malin (Jira)
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.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-3926) NPE in EbayOrderServices.createShoppingCart

Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-3926?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Norbert Rieger updated OFBIZ-3926:
----------------------------------

    Attachment: EbayOrderServices.java.patch

> 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
>
>         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.