You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Vitaly Repetenko (Jira)" <ji...@apache.org> on 2026/04/14 08:32:00 UTC
[jira] [Created] (OFBIZ-13385) Possible NPE in PayPal services
Vitaly Repetenko created OFBIZ-13385:
----------------------------------------
Summary: 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
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)