Closed dfrommi closed 9 months ago
@dfrommi Thanks for your contribution on this repo by fixing this issue. Please update your master branch and update the PR. The code checks need to be run successfully before merging.
Thanks @salander85 I've updated the branch, but also realised that I missed one location in my initial commit. Could you please have another look?
Do I need to do anything to trigger the code checks?
Do I need to do anything to trigger the code checks?
I've created a PR in your fork to update your master. Please merge your branch into your updated master and update this PR to merge into commercetools master. I hope this will fix the code checks.
Thanks. I've now updated my fork's master to the commit of this master and rebased my branch on it. Hope that helps
Hm, doesn't really look like it. How about you create a new PR with this content? @salander85
Hm, doesn't really look like it. How about you create a new PR with this content? @salander85
Okay, therefore i will close this PR. @dfrommi Please merge your local branch into your forked master-branch. Then it should be possible to create a PR from your fork to origin master. thank you.
Summary
The Product-Reference-Resolution is not covering the case where a product is assigned to a category, but has no order-hint set.
Description
Class
CategoryOrderHints
from the Commercetools-SDK has avalues()
method that is backed by a Map. The Map is only initialised when a order-hint is set, otherwisevalues()
returns null. So in case of a product having a category, but no order-hint, thecategoryOrderHints
of the product is notnull
, but its values-methods returnsnull
.This case was not covered, leading to a NullpointerException like
Relevant Issues
Todo
Hints for Review
Example-extract from ImpEx of a real product-projection: