Ecommerce Bug: CatalogManager.GetProduct(sku) throw NullReferenceException if SKU does not exist
Calling the GetProduct method using an invalid product SKU throws a NullReferenceException rather than returning a null Product.
How to reproduce:
string badSKU = "0000-0000";var catManager = CatalogManager.GetManager();Product product = catManager.GetProduct(badSKU);It's easy enough to work around using a try/catch block but if this is by design, it might be more appropriate to throw a more descriptive exception.
--Steve