Skip to content

Commit

Permalink
fix coredump
Browse files Browse the repository at this point in the history
  • Loading branch information
wangxinshuo.db committed Jun 20, 2024
1 parent 86aca90 commit 9bdc4f4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cpp/core/jni/JniWrapper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -509,8 +509,10 @@ Java_org_apache_gluten_vectorized_NativeColumnarToRowJniWrapper_nativeColumnarTo
int64_t column2RowMemThreshold;
auto it = conf.find(kColumnToRowMemoryThreshold);
bool confIsLeagal =
std::all_of(it->second.begin(), it->second.end(), [](unsigned char c) { return std::isdigit(c); });
if (it != conf.end() && confIsLeagal) {
((it == conf.end()) ? false : std::all_of(it->second.begin(), it->second.end(), [](unsigned char c) {
return std::isdigit(c);
}));
if (confIsLeagal) {
column2RowMemThreshold = std::stoll(it->second);
} else {
column2RowMemThreshold = std::stoll(kColumnToRowMemoryDefaultThreshold);
Expand Down

0 comments on commit 9bdc4f4

Please sign in to comment.