Kaydet (Commit) 5b6487aa authored tarafından mst's avatar mst Kaydeden (comit) Thorsten Behrens

fs34c: #i117666# check first if value is null

 * found as LGPLv3-only fix at svn rev 1172125 (http://svn.apache.org/viewvc?view=revision&revision=1172125)
üst e2ba9814
......@@ -786,6 +786,12 @@ sal_Bool operator==(const DateTime& _rLH,const DateTime& _rRH)
bool ORowSetValue::operator==(const ORowSetValue& _rRH) const
{
if ( m_bNull != _rRH.isNull() )
return false;
if(m_bNull && _rRH.isNull())
return true;
if ( m_eTypeKind != _rRH.m_eTypeKind )
{
switch(m_eTypeKind)
......@@ -808,10 +814,6 @@ bool ORowSetValue::operator==(const ORowSetValue& _rRH) const
}
return false;
}
if ( m_bNull != _rRH.isNull() )
return false;
if(m_bNull && _rRH.isNull())
return true;
bool bRet = false;
OSL_ENSURE(!m_bNull,"SHould not be null!");
......
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