Crash in rpl_ndb_dd_advance: check for null transaction pointer

parent a441ea8b
...@@ -7827,7 +7827,7 @@ ndb_get_table_statistics(ha_ndbcluster* file, bool report_error, Ndb* ndb, const ...@@ -7827,7 +7827,7 @@ ndb_get_table_statistics(ha_ndbcluster* file, bool report_error, Ndb* ndb, const
retry: retry:
if(report_error) if(report_error)
{ {
if (file) if (file && pTrans)
{ {
reterr= file->ndb_err(pTrans); reterr= file->ndb_err(pTrans);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment