Skip to content
This repository was archived by the owner on Feb 23, 2026. It is now read-only.

Commit 6e50bc2

Browse files
committed
fixed null pointer
1 parent 7fbd5fd commit 6e50bc2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

google/api_core/bidi.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,8 @@ def _thread_main(self, ready):
664664
_LOGGER.debug("waiting for recv.")
665665
response = self._bidi_rpc.recv()
666666
_LOGGER.debug("recved response.")
667-
self._on_response(response)
667+
if self._on_response is not None:
668+
self._on_response(response)
668669

669670
except exceptions.GoogleAPICallError as exc:
670671
_LOGGER.debug(

0 commit comments

Comments
 (0)