You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by kx...@apache.org on 2023/08/17 07:54:55 UTC

[doris] branch branch-2.0 updated: [Fix](load) fix partiotion Null pointer exception (#22965) (#23097)

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

kxiao pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-2.0 by this push:
     new a67490de06 [Fix](load) fix partiotion Null pointer exception (#22965) (#23097)
a67490de06 is described below

commit a67490de0663e50d7d77288f1a3391917450601c
Author: zzzxl <33...@users.noreply.github.com>
AuthorDate: Thu Aug 17 15:54:49 2023 +0800

    [Fix](load) fix partiotion Null pointer exception (#22965) (#23097)
---
 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 1d369841b1..a880d255aa 100644
--- a/be/src/vec/sink/vtablet_sink.cpp
+++ b/be/src/vec/sink/vtablet_sink.cpp
@@ -1226,6 +1226,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: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org