diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-20 16:32:25 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-21 08:54:42 +0000 |
commit | 4bd3c28b0b9ba1563efec7dba01b2b6d8e9a546e (patch) | |
tree | bd47269d5fa5387e558d91fb52f9d59839d72f9a /sw | |
parent | 38523b4a0ef994976883b5339cf5b29d7f7d64ba (diff) |
coverity#705920 Dereference before null check
Change-Id: I2b6cbd482a13b026c6fe1caa8a115b90ef62b1c4
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/frmedt/fetab.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/frmedt/fetab.cxx b/sw/source/core/frmedt/fetab.cxx index fc9fc2f757f3..dcf268af4fde 100644 --- a/sw/source/core/frmedt/fetab.cxx +++ b/sw/source/core/frmedt/fetab.cxx @@ -1969,7 +1969,7 @@ sal_uInt8 SwFEShell::WhichMouseTabCol( const Point &rPt ) const if( pFrm ) { - while( pFrm->Lower() && pFrm->Lower()->IsRowFrm() ) + while( pFrm && pFrm->Lower() && pFrm->Lower()->IsRowFrm() ) pFrm = (SwCellFrm*)((SwLayoutFrm*)pFrm->Lower())->Lower(); if( pFrm && pFrm->GetTabBox()->GetSttNd() && pFrm->GetTabBox()->GetSttNd()->IsInProtectSect() ) |