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


##########
src/main/java/org/apache/sling/engine/impl/SlingRequestProcessorImpl.java:
##########
@@ -355,12 +361,22 @@ public void dispatchRequest(final ServletRequest request,
             final RequestPathInfo resolvedURL, 
             final DispatchingInfo dispatchingInfo)
     throws IOException, ServletException {
-
         // we need a SlingHttpServletRequest/SlingHttpServletResponse tupel
         // to continue
         final SlingHttpServletRequest cRequest = 
RequestData.toSlingHttpServletRequest(request);
         final SlingHttpServletResponse cResponse = 
RequestData.toSlingHttpServletResponse(response);
 
+        // check that we have all required services
+        final ServletResolver sr = this.servletResolver;
+        if (sr == null) {
+            final int status = HttpServletResponse.SC_SERVICE_UNAVAILABLE;
+            String errorMessage = "Required service missing (ServletResolver)";
+            log.debug("{}), cannot dispatch requests, sending status {}", 
errorMessage, status);

Review Comment:
   thanks, will be removed with the next update



-- 
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: dev-unsubscr...@sling.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to