diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-06 10:34:00 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-06 11:57:47 +0000 |
commit | 70bfc1acea07f386fc8165a62d337762cf5cddf9 (patch) | |
tree | 4a938ff1a48d1b46d5443cdec07478f7277baf1d /sw/source/core/draw | |
parent | 57ddc98298a747ba23b276a3c6f4c6e2fc6db238 (diff) |
coverity#704882 Dereference after null check
Change-Id: I262c4d2efab8d3bfbb5edbe4208555cb446caf5c
Diffstat (limited to 'sw/source/core/draw')
-rw-r--r-- | sw/source/core/draw/dcontact.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/draw/dcontact.cxx b/sw/source/core/draw/dcontact.cxx index 6f543a6fb025..2989ee4a3058 100644 --- a/sw/source/core/draw/dcontact.cxx +++ b/sw/source/core/draw/dcontact.cxx @@ -992,7 +992,7 @@ void SwDrawContact::NotifyBackgrdOfAllVirtObjs( const Rectangle* pOldBoundRect ) } // #i34640# - include spacing for wrapping SwRect aRect( pDrawVirtObj->GetAnchoredObj()->GetObjRectWithSpaces() ); - if( aRect.HasArea() ) + if (aRect.HasArea() && pPage) { SwPageFrm* pPg = (SwPageFrm*)::FindPage( aRect, pPage ); if ( pPg ) |