gnodet-bot commented on code in PR #26203:
URL: https://github.com/apache/camel/pull/26203#discussion_r4070667685


##########
components/camel-rest-openapi/src/main/java/org/apache/camel/component/rest/openapi/RestOpenApiProcessor.java:
##########
@@ -265,5 +315,19 @@ protected void doStop() throws Exception {
             }
         }
         paths.clear();
+
+        if (unmatchedRequestCatchAllRegistered) {
+            try {
+                PlatformHttpComponent phc = 
camelContext.getComponent("platform-http", PlatformHttpComponent.class);
+                if (phc != null) {
+                if (phc != null && platformHttpConsumer != null) {

Review Comment:
   ⚠️ **Compile error introduced:** The old `if (phc != null)` guard was left 
in place when the new guard was added, creating two consecutive `if` blocks 
with an unmatched open brace. The outer `if (phc != null)` is never closed 
before the `finally` — this does not compile.
   
   Remove the old guard and keep only the combined condition:
   
   ```suggestion
                   if (phc != null && platformHttpConsumer != 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