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

coverity#1403731 Explicit null dereferenced

Change-Id: Ia8d183fbf1c80964eabc10f1e363333133a4181c
üst 61bfd5eb
......@@ -461,7 +461,7 @@ void SvMetaSlot::WriteSlot( const OString& rShellName, sal_uInt16 nCount,
i = 0;
pEle = rSlotList.empty() ? nullptr : rSlotList[ i ];
pNextSlot = pEle;
while ( pNextSlot != this )
while (pNextSlot && pNextSlot != this)
{
if ( pNextSlot->GetStateMethod() == GetStateMethod() )
break;
......
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