fix: Add None check for event in remote_a2a_agent.py

PiperOrigin-RevId: 828538350
This commit is contained in:
Google Team Member
2025-11-05 10:47:24 -08:00
committed by Copybara-Service
parent d8d7774f0f
commit 744f94f0c8
+1 -1
View File
@@ -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: