Skip to content

Missing productId in /productDetail Route Leads to Null Reference in Template #354

@msaroshali

Description

@msaroshali

An error occurs when accessing the product detail page through the /productDetail route without a productId parameter. This results in a RenderingException because the FreeMarker template (views/CatalogController/productDetail.ftl.html) attempts to access a property (smallImageURL) on a null object (likely productDetail).

Error Message:
ninja.exceptions.RenderingException: The following has evaluated to null or missing: ==> productDetail

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions