Kaydet (Commit) 56333571 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#704928 Dereference after null check

Change-Id: I6d2852c3027175aac0ec77b3d8b1a7cea9be2bd1
üst 191fecdb
...@@ -1655,7 +1655,7 @@ SwTwips SwTableLine::GetTableLineHeight( bool& bLayoutAvailable ) const ...@@ -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 // The first one defines the chain, if a chain is defined, only members of the chain
// will be added. // 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) pChain = pTab; // defines my chain (even it is already)
if( pTab->IsVertical() ) if( pTab->IsVertical() )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment