summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-20 16:31:48 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-03-21 08:54:42 +0000
commit38523b4a0ef994976883b5339cf5b29d7f7d64ba (patch)
tree43cb5cf848c95ca5e819e841e39f296e14efaed2 /sw
parent71baf7278beffc6af99a4bd15c86550cbe61a077 (diff)
coverity#705919 Dereference before null check
Change-Id: I3bd5c35e6c9dcee0833dd3f5b15dec064b525d0a
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/frmedt/fetab.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/frmedt/fetab.cxx b/sw/source/core/frmedt/fetab.cxx
index ce83786804e6..fc9fc2f757f3 100644
--- a/sw/source/core/frmedt/fetab.cxx
+++ b/sw/source/core/frmedt/fetab.cxx
@@ -1848,7 +1848,7 @@ bool SwFEShell::SelTblRowCol( const Point& rPt, const Point* pEnd, bool bRowDrag
if( pFrm )
{
- while( pFrm->Lower() && pFrm->Lower()->IsRowFrm() )
+ while( pFrm && pFrm->Lower() && pFrm->Lower()->IsRowFrm() )
pFrm = static_cast<const SwCellFrm*>( static_cast<const SwLayoutFrm*>( pFrm->Lower() )->Lower() );
if( pFrm && pFrm->GetTabBox()->GetSttNd() &&
pFrm->GetTabBox()->GetSttNd()->IsInProtectSect() )