diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-03-20 22:27:22 +0100 |
---|---|---|
committer | Noel Power <noel.power@suse.com> | 2013-03-21 09:29:30 +0000 |
commit | dc0111e5fdc9ecf991420e99b08260ed4f0d2bdb (patch) | |
tree | 1cc1acbfedb5df7903e634325463106d67617ce7 /sw | |
parent | -Werror=unused-parameter (diff) | |
download | core-dc0111e5fdc9ecf991420e99b08260ed4f0d2bdb.tar.gz core-dc0111e5fdc9ecf991420e99b08260ed4f0d2bdb.zip |
coverity#704931 Explicit null dereferenced
Change-Id: I03fe61ace1ab408d51e93f1e447591bb4eb9449c
Reviewed-on: https://gerrit.libreoffice.org/2881
Reviewed-by: Noel Power <noel.power@suse.com>
Tested-by: Noel Power <noel.power@suse.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/text/porglue.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/text/porglue.cxx b/sw/source/core/text/porglue.cxx index bceadd8e49f8..8ce717d00e17 100644 --- a/sw/source/core/text/porglue.cxx +++ b/sw/source/core/text/porglue.cxx @@ -218,7 +218,7 @@ void SwMarginPortion::AdjustRight( const SwLineLayout *pCurr ) } // Two adjoining FlyPortions are merged - if( pRight && pLeft->GetPortion() == pRight ) + if( pRight && pLeft && pLeft->GetPortion() == pRight ) { pRight->MoveAllGlue( pLeft ); pRight = 0; |