cziegeler commented on code in PR #106:
URL: 
https://github.com/apache/sling-org-apache-sling-engine/pull/106#discussion_r4537498395


##########
src/main/java/org/apache/sling/engine/impl/DefaultErrorHandler.java:
##########
@@ -263,4 +309,56 @@ private void sendError(
         // close the response (SLING-2724)
         pw.close();
     }
+
+    private boolean matchesName(final ServiceReference<JakartaErrorHandler> 
ref, final String name) {
+        final String[] names = Converters.standardConverter()
+                
.convert(ref.getProperty(SlingRequestProcessorImpl.ERROR_HANDLER_NAME))
+                .to(String[].class);
+
+        for (final String n : names) {
+            if (name.equals(n)) {
+                return true;
+            }
+        }
+        return false;
+    }

Review Comment:
   names cant be null



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