fix core when xmldoc::getmsg20reply is called

This commit is contained in:
Matt Wells
2013-11-14 09:32:18 -08:00
parent 5c0194c439
commit 8534914902

@ -25460,8 +25460,15 @@ Msg20Reply *XmlDoc::getMsg20Reply ( ) {
m_niceness = m_req->m_niceness;
CollectionRec *cr = getCollRec();
if ( ! cr ) return NULL;
char *coll = m_req->ptr_coll;
CollectionRec *cr = g_collectiondb.getRec ( coll );
if ( ! cr ) { g_errno = ENOCOLLREC; return NULL; }
m_collnum = cr->m_collnum;
m_collnumValid = true;
//CollectionRec *cr = getCollRec();
//if ( ! cr ) return NULL;
// set this important member var
//if (!cr ) cr=g_collectiondb.getRec(cr->m_coll,gbstrlen(cr->m_coll));