mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
fixed Null pointer exception with limit 0 [#CONV-7549]
This commit is contained in:
parent
96fd8665db
commit
fe47dbfd50
@ -767,7 +767,7 @@ private:
|
||||
|
||||
void onProfileInfo(const BlockStreamProfileInfo & profile_info)
|
||||
{
|
||||
if (profile_info.hasAppliedLimit())
|
||||
if (profile_info.hasAppliedLimit() && block_std_out)
|
||||
block_std_out->setRowsBeforeLimit(profile_info.getRowsBeforeLimit());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user