summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-09-15 13:33:58 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-09-15 15:45:12 +0200
commitda62981c33fb56e37a86c911e6404090d75fd2e7 (patch)
treee07b4ef3a532fe27a06ae668338d83eb43f64fa4 /sw
parent8629850eb98ec7f3501f0904063958d61b370747 (diff)
coverity#1439335 silence Explicit null dereferenced
and coverity#1439331 Explicit null dereferenced Change-Id: Ic9de4d4975cc1721fe5064b2cb8f41b819cf1f98 Reviewed-on: https://gerrit.libreoffice.org/60521 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/crsr/findattr.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/source/core/crsr/findattr.cxx b/sw/source/core/crsr/findattr.cxx
index 452064e866b8..31d299a34fba 100644
--- a/sw/source/core/crsr/findattr.cxx
+++ b/sw/source/core/crsr/findattr.cxx
@@ -476,6 +476,7 @@ bool SwAttrCheckArr::SetAttrFwd( const SwTextAttr& rAttr )
}
if( pIter )
{
+ assert(pSet && "otherwise no pIter");
nWhch = pIter->NextWhich();
while( nWhch &&
SfxItemState::SET != pSet->GetItemState( nWhch, true, &pTmpItem ) )
@@ -627,6 +628,7 @@ bool SwAttrCheckArr::SetAttrBwd( const SwTextAttr& rAttr )
}
if( pIter )
{
+ assert(pSet && "otherwise no pIter");
nWhch = pIter->NextWhich();
while( nWhch &&
SfxItemState::SET != pSet->GetItemState( nWhch, true, &pTmpItem ) )