liataynat opened a new pull request, #15:
URL: https://github.com/apache/rocketmq-ai/pull/15

   ### Summary
   
   `RocketMQUtil.parseAgentCardAddition` returns `null` when an AgentCard has a 
valid preferred RocketMQ URL and an explicitly empty `additionalInterfaces` 
list. The initial guard checks the list before trying the preferred transport.
   
   Try the preferred binding first and keep the empty-list check before 
iterating over fallback bindings.
   
   ### Tests
   
   - Added four tests for an explicitly empty list, an omitted list, fallback 
to an additional RocketMQ binding, and a card without a RocketMQ binding.
   - The explicitly empty case fails before the fix and passes with it.
   - `mvn -B -f rocketmq-a2a/pom.xml test`: 8 tests passed, 0 Checkstyle 
violations.


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