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

getProductImageIds fails when there is no product->images in the json #856

Closed
g123k opened this issue Dec 16, 2023 · 0 comments · Fixed by #857
Closed

getProductImageIds fails when there is no product->images in the json #856

g123k opened this issue Dec 16, 2023 · 0 comments · Fixed by #857

Comments

@g123k
Copy link
Contributor

g123k commented Dec 16, 2023

Hi everyone,

getProductImageIds fails with this instruction:

final Map<String, dynamic> images = json['product']['images'];

When the product is fully empty, this Map is null, hence an error in the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant