You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "mridulpathak (via GitHub)" <gi...@apache.org> on 2026/09/15 11:46:51 UTC

[PR] Fixed: createUpdateBillingAddressAndPaymentMethod throws NPE for anonymous checkout (OFBIZ-13584) [ofbiz-framework]

mridulpathak opened a new pull request, #2005:
URL: https://github.com/apache/ofbiz-framework/pull/2005

   The method dereferenced userLogin.userLoginId without checking userLogin for null first, throwing a NullPointerException whenever a partyId is present but the shopping cart has no associated userLogin (an anonymous checkout carrying a resolved party from elsewhere). The original minilang's dotted-field access degraded gracefully to null in that case instead of crashing. The guard now checks userLogin is non-null before accessing userLoginId, matching the pattern already used in the sibling method createUpdateCustomerAndShippingAddress in the same file.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@ofbiz.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fixed: createUpdateBillingAddressAndPaymentMethod throws NPE for anonymous checkout (OFBIZ-13584) [ofbiz-framework]

Posted by "mridulpathak (via GitHub)" <gi...@apache.org>.
mridulpathak merged PR #2005:
URL: https://github.com/apache/ofbiz-framework/pull/2005


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@ofbiz.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org