Defect HC-22942
Contract price indexing fails with null pointer exception when calculating price for bundle containing a component without price
Software
Customer case | Applies to | Corrected in |
---|---|---|
CS0350690 | V9.1.11.0 | 9.1.12.0 |
Observed behavior
When calculating the price for a bundle, if one of the components has no price, the price calculation fails abruptly and a NullPointerExection is raised, along with a message similar to the following:
Price calculation started for masterCatalogId:3,074,457,345,616,679,068. Price calculation failed for masterCatalogId:3074457345616679068. The error is: java.lang.NullPointerException at com.ibm.commerce.foundation.dataimport.priceindex.commands.ContractPriceCalculateCmdImpl.calculateCompositeCatentryForIngest(ContractPriceCalculateCmdImpl.java:2511)
Expected behavior
The code should handle the missing price gracefully.
Resolution
Fixed