luigidemasi commented on code in PR #24116:
URL: https://github.com/apache/camel/pull/24116#discussion_r3442028332


##########
components/camel-ai/camel-a2a/src/main/java/org/apache/camel/component/a2a/A2AProgress.java:
##########
@@ -137,20 +157,15 @@ static A2ATaskStore findStore(Exchange exchange, String 
taskId) {
                 return store;
             }
         }
-        // Fallback: scan component endpoints
-        try {
-            if (taskId != null) {
-                for (Endpoint ep : exchange.getContext().getEndpoints()) {
-                    if (ep instanceof A2AEndpoint a2aEp) {
-                        A2ATaskStore store = a2aEp.getTaskStore();
-                        if (store != null && store.get(taskId) != null) {
-                            return store;
-                        }
+        if (taskId != null) {
+            for (Endpoint ep : exchange.getContext().getEndpoints()) {

Review Comment:
   I restored the defensive `try/catch` around the fallback endpoint scan.



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