Skip to content

Commit

Permalink
Fix bug when ConnectContext is a null pointer (StarRocks#946)
Browse files Browse the repository at this point in the history
  • Loading branch information
chaoyli authored Oct 28, 2021
1 parent 29f7d24 commit 5f1e854
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,9 @@ protected void toThrift(TPlanNode msg) {
if (null != sortColumn) {
msg.olap_scan_node.setSort_column(sortColumn);
}
msg.olap_scan_node.setEnable_column_expr_predicate(ConnectContext.get().getSessionVariable().getEnableColumnExprPredicate());
if (ConnectContext.get() != null) {
msg.olap_scan_node.setEnable_column_expr_predicate(ConnectContext.get().getSessionVariable().getEnableColumnExprPredicate());
}
}

// export some tablets
Expand Down

0 comments on commit 5f1e854

Please sign in to comment.