reschke commented on code in PR #118:
URL:
https://github.com/apache/sling-org-apache-sling-resourceresolver/pull/118#discussion_r1680893214
##########
src/main/java/org/apache/sling/resourceresolver/impl/mapping/MapEntries.java:
##########
@@ -1220,14 +1220,18 @@ private boolean loadAlias(final Resource resource,
Map<String, Map<String, Colle
if (JCR_CONTENT.equals(resource.getName())) {
containingResource = resource.getParent();
+ if (containingResource == null) {
+ log.warn("containingResource is null for alias on {},
skipping.", resource.getPath());
+ return false;
+ }
} else {
containingResource = resource;
}
final Resource parent = containingResource.getParent();
if (parent == null) {
- log.debug("parent is null for alias on {}.", resource.getName());
+ log.warn("containing ancestor is null for alias on {}, skipping.",
resource.getPath());
Review Comment:
ok, I can split this into two different messages; does that make sense?
--
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]