From a96a1200f2ffd98f4e884708dc4059ab789c3dc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Cumplido?= Date: Fri, 23 Jan 2026 16:55:12 +0100 Subject: [PATCH] GH-48965: [Python][C++] Compare unique_ptr for CFlightResult or CFlightInfo to nullptr instead of NULL --- python/pyarrow/_flight.pyx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/pyarrow/_flight.pyx b/python/pyarrow/_flight.pyx index b7e7af260c2..f447129cf40 100644 --- a/python/pyarrow/_flight.pyx +++ b/python/pyarrow/_flight.pyx @@ -1666,7 +1666,7 @@ cdef class FlightClient(_Weakrefable): result = Result.__new__(Result) with nogil: check_flight_status(results.get().Next().Value(&result.result)) - if result.result == NULL: + if result.result == nullptr: break yield result return _do_action_response() @@ -1695,7 +1695,7 @@ cdef class FlightClient(_Weakrefable): result = FlightInfo.__new__(FlightInfo) with nogil: check_flight_status(listing.get().Next().Value(&result.info)) - if result.info == NULL: + if result.info == nullptr: break yield result