Defect HC-22841
NullPointerException raised when calling the productview/bySearchTerm API
Software
Customer case | Applies to | Corrected in |
---|---|---|
CS0348834 | V9.1.9.0 | 9.1.12.0 |
Observed behavior
When calling the productview/bySearchTerm/* API, a NullPointerException may be raised, similar to the following:
"status":500,"error":"Internal Server Error","message":"org.springframework.web.util.NestedServletException: Request processing failed; nested exception is com.hcl.commerce.search.exception.SearchApplicationException","path":"/search/resources/store/6970/productview/bySearchTerm/*"}
Expected behavior
There should be no exception raised and the query should execute correctly.
Resolution
Code Fix