Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix NPE in Inventory entry reference resolution #1124

Merged
merged 1 commit into from
Dec 5, 2023

Conversation

salander85
Copy link
Contributor

Summary

https://commercetools.atlassian.net/browse/DEVX-275

Description

To avoid NPE thrown by InventoryEntryDraftBuilder i've added a check for required fields and created empty draft in case of missing required (which will fail in sync() with proper error message because it'll be checked by BatchValidator).

@salander85 salander85 requested a review from lojzatran December 4, 2023 14:45
Copy link
Collaborator

@lojzatran lojzatran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job 🥇

@salander85 salander85 merged commit c340210 into master Dec 5, 2023
5 of 6 checks passed
@salander85 salander85 deleted the DEVX-275_fix-npe-inventory-sync branch December 5, 2023 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants