Commit 0a6af4f2 authored by Claes Sjofors's avatar Claes Sjofors

GetRootList didn't return error code for empty mysql database

parent d2334e10
......@@ -266,8 +266,12 @@ wb_orep* wb_vrepdbms::object(pwr_tStatus *sts)
oid.oix = pwr_cNOix;
m_ohead.get(m_db->m_txn, oid);
if ( cdh_ObjidIsNotNull( m_ohead.foid()))
m_ohead.get(m_db->m_txn, m_ohead.foid());
if ( cdh_ObjidIsNull( m_ohead.foid())) {
*sts = LDH__NOSUCHOBJ;
return 0;
}
m_ohead.get(m_db->m_txn, m_ohead.foid());
return new (this) wb_orepdbms(&m_ohead.m_o);
}
......
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