summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-11 09:49:50 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-11 12:11:40 +0000
commit56333571cac472d7c1ea154fe8522bc7d565fd31 (patch)
tree2fc0f89255ecff8b6f706d40c4eca733585ff5e9 /sw
parent191fecdb2610c862f17d6ee367548c8f532557b0 (diff)
coverity#704928 Dereference after null check
Change-Id: I6d2852c3027175aac0ec77b3d8b1a7cea9be2bd1
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 ad37a5fa8059..987a2877f763 100644
--- a/sw/source/core/table/swtable.cxx
+++ b/sw/source/core/table/swtable.cxx
@@ -1655,7 +1655,7 @@ SwTwips SwTableLine::GetTableLineHeight( bool& bLayoutAvailable ) const
// The first one defines the chain, if a chain is defined, only members of the chain
// will be added.
- if( !pChain || pChain->IsAnFollow( pTab ) || pTab->IsAnFollow( pChain ) )
+ if (pTab && (!pChain || pChain->IsAnFollow( pTab ) || pTab->IsAnFollow(pChain)))
{
pChain = pTab; // defines my chain (even it is already)
if( pTab->IsVertical() )