diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-12-16 19:39:10 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-12-16 23:58:18 +0100 |
commit | 9bf3eb328bc85c0a4702056ae3e49c41c5a8b9d9 (patch) | |
tree | 40d7a35bf37f0ac4ef12a4df6956fdb7fb7ee32e | |
parent | 4099b7628405e0ad16844eb59a916aa56ffa76ad (diff) |
coverity#1426168 Dereference after null check
Change-Id: Ib3ae45a7b012775ee7d540a565c0324f8dcf456e
Reviewed-on: https://gerrit.libreoffice.org/46611
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | sw/source/core/layout/fly.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/layout/fly.cxx b/sw/source/core/layout/fly.cxx index f0bb198cb57f..b4d05f138fbf 100644 --- a/sw/source/core/layout/fly.cxx +++ b/sw/source/core/layout/fly.cxx @@ -758,7 +758,7 @@ void SwFlyFrame::UpdateAttr_( const SfxPoolItem *pOld, const SfxPoolItem *pNew, if ( FrameSizeChg( rNew ) ) NotifyDrawObj(); rInvFlags |= 0x7F; - if ( RES_FMT_CHG == nWhich ) + if (pOld && RES_FMT_CHG == nWhich) { SwRect aNew( GetObjRectWithSpaces() ); SwRect aOld( getFrameArea() ); |