Commit abd66a3
committed
fix: guard against None converter results in RemoteA2aAgent
Converter functions (convert_a2a_message_to_event, convert_a2a_task_to_event)
return Optional[Event], but several handler paths in RemoteA2aAgent access
attributes on the result without checking for None first. This causes
AttributeError when a converter returns None (e.g., for empty messages
or metadata-only events).
Add `if not event: return None` guards at all four call sites in both
the legacy and new-style response handlers.
Github-Issue: #51871 parent 114deef commit abd66a3
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
476 | 476 | | |
477 | 477 | | |
478 | 478 | | |
| 479 | + | |
| 480 | + | |
479 | 481 | | |
480 | 482 | | |
481 | 483 | | |
| |||
501 | 503 | | |
502 | 504 | | |
503 | 505 | | |
| 506 | + | |
| 507 | + | |
504 | 508 | | |
505 | 509 | | |
506 | 510 | | |
| |||
513 | 517 | | |
514 | 518 | | |
515 | 519 | | |
| 520 | + | |
| 521 | + | |
516 | 522 | | |
517 | 523 | | |
518 | 524 | | |
| |||
583 | 589 | | |
584 | 590 | | |
585 | 591 | | |
| 592 | + | |
| 593 | + | |
586 | 594 | | |
587 | 595 | | |
588 | 596 | | |
| |||
0 commit comments