You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Matt Topol (Jira)" <ji...@apache.org> on 2021/05/07 14:16:00 UTC

[jira] [Created] (ARROW-12684) [Go][Flight] Fix nil dereference in error case

Matt Topol created ARROW-12684:
----------------------------------

             Summary: [Go][Flight] Fix nil dereference in error case
                 Key: ARROW-12684
                 URL: https://issues.apache.org/jira/browse/ARROW-12684
             Project: Apache Arrow
          Issue Type: Bug
          Components: FlightRPC, Go
            Reporter: Matt Topol
            Assignee: Matt Topol


https://github.com/apache/arrow/blob/master/go/arrow/flight/record_batch_reader.go#L49

If the first message read errors, then we attempt to call `msg.Release` on a nil pointer. Just need to add a proper nil check like in the Release function itself.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)