Hi,
The ProductInfoViewModelExtensions is missing some null checks. I was trying to do this simple line of code and when I navigate to a Product that is Discontinued but has no Replacement Product, I get a missing ProductId error.
ProductViewModel replacementProduct = product?.ReplacementProduct?.GetProduct();
Here is the link to the offending file, line 10 https://dev.azure.com/dynamicwebsoftware/Dynamicweb/_git/Dynamicweb?path=/src/77%20-%20Ecommerce/Dynamicweb.Ecommerce/ProductCatalog/ProductInfoViewModelExtensions.cs&_a=contents&version=GBmain
Simply validating if ProductId is not null or empty should be enough, but I haven't checked further.
Can this please be fixed?
Best Regards,
Nuno Aguiar
Best Regards,
Nuno Aguiar