reschke commented on code in PR #118:
URL: 
https://github.com/apache/sling-org-apache-sling-resourceresolver/pull/118#discussion_r1680817993


##########
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) {
+            log.warn("containingResource is null for alias on {}, skipping.", 
resource.getPath());
+            return false;
+        }
+ 
         final Resource parent = containingResource.getParent();
 
         if (parent == null) {
-            log.debug("parent is null for alias on {}.", resource.getName());
+            log.warn("parent is null for alias on {}, skipping.", 
resource.getPath());

Review Comment:
   you mean exactly *which*? I'd pefer to do that separately as part of a 
separate ticket/PR.



-- 
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]

Reply via email to