joerghoh commented on code in PR #118:
URL:
https://github.com/apache/sling-org-apache-sling-resourceresolver/pull/118#discussion_r1680732471
##########
src/main/java/org/apache/sling/resourceresolver/impl/mapping/MapEntries.java:
##########
@@ -1224,10 +1224,15 @@ private boolean loadAlias(final Resource resource,
Map<String, Map<String, Colle
containingResource = resource;
}
+ if (containingResource == null) {
Review Comment:
I would move this check a bit up into the block after line 1222:
```
if (JCR_CONTENT.equals(resource.getName())) {
containingResource = resource.getParent();
if (containingResource == null) {
log.warn(...)
return false;
}
} else ...
```
because only there ``containingResource`` can be assigned that null value.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]