From 7bf2fd860b816262836cffac450ce65042bf38fc Mon Sep 17 00:00:00 2001 From: Cuiziyuan Date: Sun, 24 Aug 2025 15:23:36 +0800 Subject: [PATCH] =?UTF-8?q?query=E8=BF=94=E5=9B=9Enullptr=E7=9A=84?= =?UTF-8?q?=E5=88=86=E6=94=AF=E4=B8=AD=E5=A2=9E=E5=8A=A0DFX?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Cuiziyuan --- .../service/data_share/common/rdb_delegate.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/services/distributeddataservice/service/data_share/common/rdb_delegate.cpp b/services/distributeddataservice/service/data_share/common/rdb_delegate.cpp index 940f599c4..f7620fbb4 100644 --- a/services/distributeddataservice/service/data_share/common/rdb_delegate.cpp +++ b/services/distributeddataservice/service/data_share/common/rdb_delegate.cpp @@ -272,6 +272,7 @@ std::pair> RdbDelegate::Query(const std auto bridge = RdbDataShareAdapter::RdbUtils::ToResultSetBridge(resultSet); auto resultSetPtr = new (std::nothrow) DataShareResultSet(bridge); if (resultSetPtr == nullptr) { + ZLOGE("allocate mem for resultSet failed"); return std::make_pair(E_ERROR, nullptr); } auto result = std::shared_ptr(resultSetPtr, [callingPid, beginTime](auto p) { -- Gitee