Commit 23ed93f7 authored by unknown's avatar unknown

Protect from use of NULL pointer


ndb/src/ndbapi/Ndb.cpp:
  Dont call trans->getTransactionId if trans is NULL.
parent 4cf6ce7e
......@@ -330,7 +330,7 @@ Ndb::startTransaction(Uint32 aPriority, const char * keyData, Uint32 keyLen)
{
NdbConnection *trans= startTransactionLocal(aPriority, nodeId);
DBUG_PRINT("exit",("start trans: 0x%x transid: 0x%llx",
trans, trans->getTransactionId()));
trans, trans ? trans->getTransactionId() : 0));
DBUG_RETURN(trans);
}
} else {
......
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