[ https://issues.apache.org/jira/browse/SLING-3269?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bertrand Delacretaz updated SLING-3269: --------------------------------------- Description: The ResourceDecorator javadocs specify that decorate(Resource r) returning null is the same as returning r, but this is not the case. Returning null causes a null Resource to be returned in several places, instead of the original resource. Following up on the SLING-3267 discussions, I'll update the bundles/resourceresolver to expose the problems, and tag them with TODO:SLING-3269 was: The ResourceDecorator javadocs specify that decorate(Resource r) returning null is the same as returning r, but this is not the case. Returning null causes a null Resource to be returned in several places, instead of the original resource. Following up on the SLING-3267 discussions, I'll update the bundles/resourceresolver to expose the problems, and tag them with TODO:SLING-3267 > ResourceDecorator returning null does not behave as specified > ------------------------------------------------------------- > > Key: SLING-3269 > URL: https://issues.apache.org/jira/browse/SLING-3269 > Project: Sling > Issue Type: Bug > Components: ResourceResolver > Affects Versions: Resource Resolver 1.0.6 > Reporter: Bertrand Delacretaz > Assignee: Bertrand Delacretaz > Priority: Minor > > The ResourceDecorator javadocs specify that decorate(Resource r) returning > null is the same as returning r, but this is not the case. Returning null > causes a null Resource to be returned in several places, instead of the > original resource. > Following up on the SLING-3267 discussions, I'll update the > bundles/resourceresolver to expose the problems, and tag them with > TODO:SLING-3269 -- This message was sent by Atlassian JIRA (v6.1.4#6159)