diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-06-06 20:50:05 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-06-06 21:28:27 +0100 |
commit | 05aa604f029a4d09c4991c04b7bd90165dd759cf (patch) | |
tree | 5b4fa49044221c438d6638ea3dbd78b2ac2c5e9d /sw | |
parent | cf624463024112689ff8593fd6fd82a488c07566 (diff) |
coverity#735910 Dereference after null check
Change-Id: Ifc85be1fc2c0e6d6764c0f1c4a237623d6d13a7b
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/table/swtable.cxx | 2 |
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 ) |