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: If product -> images is null, getProductImageIdsshouldn't crash #857

Merged
merged 2 commits into from
Dec 16, 2023

Conversation

g123k
Copy link
Contributor

@g123k g123k commented Dec 16, 2023

Hi everyone!

As noticed in the OFF app, when in the json, product -> images is null, the code crashes because we assign it to a non-null Map.

@teolemon
Copy link
Member

Just curious, how can this be reproduced ?

@g123k
Copy link
Contributor Author

g123k commented Dec 16, 2023

You can test with 98765432186

@teolemon teolemon merged commit 02abab3 into master Dec 16, 2023
5 checks passed
@teolemon teolemon deleted the getProductImageIds branch December 16, 2023 12:22
@teolemon
Copy link
Member

Thanks @g123k 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

getProductImageIds fails when there is no product->images in the json
3 participants