coverity#1209793 Dereference before null check

Change-Id: I5c89f7291117d66ff07f7d686c7030396cb504df
This commit is contained in:
Caolán McNamara 2014-05-09 09:20:04 +01:00
parent 1732919a6e
commit 0698ccf040

View file

@ -1020,7 +1020,7 @@ void SvMetaSlot::Insert( SvSlotElementList& rList, const OString& rPrefix,
SvMetaAttribute * pAttr = rBase.GetAttrList()[m];
if (aSId.equals(pAttr->GetSlotId().getString()))
{
SvMetaSlot* pSlot = PTR_CAST( SvMetaSlot, pAttr );
SvMetaSlot* pSlot = dynamic_cast<SvMetaSlot*>(pAttr);
xEnumSlot = pSlot->Clone();
break;
}