mirror of
https://github.com/encounter/adk-python.git
synced 2026-07-09 18:19:28 -07:00
fix: Add None check for event in remote_a2a_agent.py
PiperOrigin-RevId: 828538350
This commit is contained in:
committed by
Copybara-Service
parent
d8d7774f0f
commit
744f94f0c8
@@ -372,7 +372,7 @@ class RemoteA2aAgent(BaseAgent):
|
||||
if _is_other_agent_reply(self.name, event):
|
||||
event = _present_other_agent_message(event)
|
||||
|
||||
if not event.content or not event.content.parts:
|
||||
if not event or not event.content or not event.content.parts:
|
||||
continue
|
||||
|
||||
for part in event.content.parts:
|
||||
|
||||
Reference in New Issue
Block a user