You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AEM Version, including Service Packs, Cumulative Fix Packs, etc: _______
ACS AEM Commons Version: _____
Reproducible on Latest? yes/no
Expected Behavior
Please describe briefly the expected behavior, i.e. when I do X, Y should happen.
Actual Behavior
Please describe briefly the actual behavior, i.e. when I do X, Z happens.
Steps to Reproduce
Starting from a vanilla instance of AEM at the above version, describe in explicit steps how to reproduce. Link to
any supporting assets, e.g. content packages, below
Links
Links to related assets, e.g. content packages containing test components
The text was updated successfully, but these errors were encountered:
pankaj-parashar
changed the title
DesignReferenceProvider provides reference for the design resource which doesn't has content
DesignReferenceProvider provides reference for the design resource which doesn't have content resource
Mar 14, 2023
As per api doc https://developer.adobe.com/experience-manager/reference-materials/6-5/javadoc/com/day/cq/wcm/api/designer/Design.html#getContentResource-- , the api can return null if the design doesn't have the content resource. In this case, DesignReferenceProvider still returning reference which will return null for the api https://developer.adobe.com/experience-manager/reference-materials/6-5/javadoc/com/day/cq/wcm/api/reference/Reference.html#getResource-- this can cause NPE in the code consuming the references provided by DesignReferenceProvider. It shouldn't references for the valid resource only.
Required Information
Expected Behavior
Please describe briefly the expected behavior, i.e. when I do X, Y should happen.
Actual Behavior
Please describe briefly the actual behavior, i.e. when I do X, Z happens.
Steps to Reproduce
Starting from a vanilla instance of AEM at the above version, describe in explicit steps how to reproduce. Link to
any supporting assets, e.g. content packages, below
Links
Links to related assets, e.g. content packages containing test components
The text was updated successfully, but these errors were encountered: