An error has been reported due to missing a parent product in the line item when added to cart.
This PR adds an extra null check that if the article added to cart has no parent, skips the product id and logs the message.
Related Issue
Fixes #221
Motivation and Context
How Has This Been Tested?
Checklist:
[X] My code follows the code style of this project.
[X] All new and existing tests passed.
[X] I have assigned the correct milestone or created one if non-existent.
[X] I have correctly labeled this pull request.
[X] I have linked the corresponding issue in this description.
[X] I have updated the corresponding Jira ticket.
[x] I have requested a review from at least 2 reviewers
[X] I have checked the base branch of this pull request
[X] I have checked my code for any possible security vulnerabilities
Description
An error has been reported due to missing a parent product in the line item when added to cart. This PR adds an extra null check that if the article added to cart has no parent, skips the product id and logs the message.
Related Issue
Fixes #221
Motivation and Context
How Has This Been Tested?
Checklist: