This is an automated email from the ASF dual-hosted git repository.

jianliangqi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 8b51da0523 [Fix](load) fix partiotion Null pointer exception (#22965)
8b51da0523 is described below

commit 8b51da0523ed119171364008f02faef550df2e67
Author: zzzxl <[email protected]>
AuthorDate: Thu Aug 17 14:09:47 2023 +0800

    [Fix](load) fix partiotion Null pointer exception (#22965)
---
 be/src/vec/sink/vtablet_sink.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/be/src/vec/sink/vtablet_sink.cpp b/be/src/vec/sink/vtablet_sink.cpp
index 536a8cf330..55c14b9f9a 100644
--- a/be/src/vec/sink/vtablet_sink.cpp
+++ b/be/src/vec/sink/vtablet_sink.cpp
@@ -1259,6 +1259,9 @@ Status 
VOlapTableSink::_single_partition_generate(RuntimeState* state, vectorize
         }
         break;
     }
+    if (partition == nullptr) {
+        return Status::OK();
+    }
     for (int j = 0; j < partition->indexes.size(); ++j) {
         auto tid = partition->indexes[j].tablets[tablet_index];
         auto it = _channels[j]->_channels_by_tablet.find(tid);


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to