coverity#1209793 Dereference before null check
Change-Id: I5c89f7291117d66ff07f7d686c7030396cb504df
This commit is contained in:
@@ -1020,7 +1020,7 @@ void SvMetaSlot::Insert( SvSlotElementList& rList, const OString& rPrefix,
|
|||||||
SvMetaAttribute * pAttr = rBase.GetAttrList()[m];
|
SvMetaAttribute * pAttr = rBase.GetAttrList()[m];
|
||||||
if (aSId.equals(pAttr->GetSlotId().getString()))
|
if (aSId.equals(pAttr->GetSlotId().getString()))
|
||||||
{
|
{
|
||||||
SvMetaSlot* pSlot = PTR_CAST( SvMetaSlot, pAttr );
|
SvMetaSlot* pSlot = dynamic_cast<SvMetaSlot*>(pAttr);
|
||||||
xEnumSlot = pSlot->Clone();
|
xEnumSlot = pSlot->Clone();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user