kou commented on issue #39690:
URL: https://github.com/apache/arrow/issues/39690#issuecomment-1899218798
Oh, sorry.
I found this:
```diff
diff --git a/cpp/src/arrow/flight/types.cc b/cpp/src/arrow/flight/types.cc
index 9da83fa8a1..1d43c41b69 100644
--- a/cpp/src/arrow/flight/types.cc
+++ b/cpp/src/arrow/flight/types.cc
@@ -373,7 +373,12 @@ arrow::Result<std::unique_ptr<PollInfo>>
PollInfo::Deserialize(
std::string PollInfo::ToString() const {
std::stringstream ss;
- ss << "<PollInfo info=" << info->ToString();
+ ss << "<PollInfo info=";
+ if (info) {
+ ss << info->ToString();
+ } else {
+ ss << "null";
+ }
ss << " descriptor=";
if (descriptor) {
ss << descriptor->ToString();
```
Do you know more missing `nullptr` checks?
--
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]