fixed Null pointer exception with limit 0 [#CONV-7549]

This commit is contained in:
Vyacheslav Alipov 2013-05-22 15:35:25 +00:00
parent 96fd8665db
commit fe47dbfd50

View File

@ -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());
}