Kaydet (Commit) a93dec59 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#735795 Unchecked dynamic_cast

Change-Id: I3599c03d43761da73b89beae990f8688bd0b549b
üst 62256ce4
......@@ -3431,8 +3431,8 @@ void ScInterpreter::ScMacro()
else if ( eResType & SbxARRAY )
{
SbxBase* pElemObj = refRes->GetObject();
SbxDimArray* pDimArray = dynamic_cast< SbxDimArray *>( pElemObj );
short nDim = pDimArray->GetDims();
SbxDimArray* pDimArray = dynamic_cast<SbxDimArray*>(pElemObj);
short nDim = pDimArray ? pDimArray->GetDims() : 0;
if ( 1 <= nDim && nDim <= 2 )
{
sal_Int32 nCs, nCe, nRs, nRe;
......
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