You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Jacques Le Roux (Jira)" <ji...@apache.org> on 2026/04/14 14:51:00 UTC
[jira] [Reopened] (OFBIZ-13385) Possible NPE in PayPal services
[ https://issues.apache.org/jira/browse/OFBIZ-13385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jacques Le Roux reopened OFBIZ-13385:
-------------------------------------
Indeed Vitalo, thanks for checking. As I said on dev ML:
bq. That looked so easy and I did not saw all points. I'll fix that.
> Possible NPE in PayPal services
> -------------------------------
>
> Key: OFBIZ-13385
> URL: https://issues.apache.org/jira/browse/OFBIZ-13385
> Project: OFBiz
> Issue Type: Bug
> Components: accounting
> Reporter: Vitaly Repetenko
> Assignee: Jacques Le Roux
> Priority: Major
>
> PayPalServices.setExpressCheckout:
>
> {{ShoppingCart cart = (ShoppingCart) context.get("cart");}}
> {{Locale locale = cart.getLocale();}}
> {{if (cart == null || cart.items().size() <= 0) {}}
> {{ return ServiceUtil.returnError(UtilProperties.getMessage(RESOURCE,}}
> {{ "AccountingPayPalShoppingCartIsEmpty", locale));}}
> {{}}}
>
> using cart before checking if it is null
--
This message was sent by Atlassian Jira
(v8.20.10#820010)