summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-06-06 20:50:05 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-06-06 21:28:27 +0100
commit05aa604f029a4d09c4991c04b7bd90165dd759cf (patch)
tree5b4fa49044221c438d6638ea3dbd78b2ac2c5e9d /sw
parentcf624463024112689ff8593fd6fd82a488c07566 (diff)
coverity#735910 Dereference after null check
Change-Id: Ifc85be1fc2c0e6d6764c0f1c4a237623d6d13a7b
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/table/swtable.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/table/swtable.cxx b/sw/source/core/table/swtable.cxx
index c3a7ce4ed36f..2f2666e41740 100644
--- a/sw/source/core/table/swtable.cxx
+++ b/sw/source/core/table/swtable.cxx
@@ -1459,7 +1459,7 @@ SwTableBox* SwTable::GetTblBox( sal_uLong nSttIdx )
if ( pTblNd && pTblNd->GetTable().GetFrmFmt() )
pModify = pTblNd->GetTable().GetFrmFmt();
- SwFrm* pFrm = SwIterator<SwFrm,SwModify>::FirstElement( *pModify );
+ SwFrm* pFrm = pModify ? SwIterator<SwFrm,SwModify>::FirstElement(*pModify) : NULL;
while ( pFrm && !pFrm->IsCellFrm() )
pFrm = pFrm->GetUpper();
if ( pFrm )