Posted on 06/04/2025 13:15:02
Hi Nicolai,
Sorry my initial explanation was not good enough. I will try to break it down.
We do have a product that has only Image Patterns (screenshot on original description).
So these 2 lines are returning an empty collection since the product has no Asset Categories and only Image Patterns

After that the Image Patterns are added to assetsList collection

But then on this last line because assetsList already has the ImagePatterns, the condition assetsList.Count() == 0 is False and the default Image is not appended to the collection.

We reached the end of these Lines with the DefaultImage not in assetsList collection.
Let me know if this helps.
Thank you.