summaryrefslogtreecommitdiff
path: root/idl/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-05-12 09:03:36 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-05-12 09:28:12 +0100
commitfd24dd469dcc17063b3126d1d73dcceaae97a984 (patch)
treed685cfe103b062412b454e9ae842634398d23ca3 /idl/source
parent61bfd5eb66953d61eaaa7c87b372e616b6e5f793 (diff)
coverity#1403731 Explicit null dereferenced
Change-Id: Ia8d183fbf1c80964eabc10f1e363333133a4181c
Diffstat (limited to 'idl/source')
-rw-r--r--idl/source/objects/slot.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/idl/source/objects/slot.cxx b/idl/source/objects/slot.cxx
index dec49c26bd8a..d68b366cdfd0 100644
--- a/idl/source/objects/slot.cxx
+++ b/idl/source/objects/slot.cxx
@@ -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;