[Libreoffice-commits] core.git: sw/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Fri Feb 5 11:36:11 UTC 2021


 sw/source/core/layout/fly.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 896366b461b5a77ec29566ff9109d33bd5c3be8a
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Feb 5 09:30:47 2021 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Feb 5 12:35:29 2021 +0100

    cid#1472782 Dereference after null check
    
    Change-Id: I5a46d926377caf9f67c2aac43efd25918bf2aa38
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110459
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sw/source/core/layout/fly.cxx b/sw/source/core/layout/fly.cxx
index 9d79621c5d15..761125b32222 100644
--- a/sw/source/core/layout/fly.cxx
+++ b/sw/source/core/layout/fly.cxx
@@ -957,6 +957,7 @@ void SwFlyFrame::UpdateAttr_( const SfxPoolItem *pOld, const SfxPoolItem *pNew,
             break;
 
         case RES_OPAQUE:
+            if (pNew)
             {
                 if ( pSh )
                     pSh->InvalidateWindows( getFrameArea() );


More information about the Libreoffice-commits mailing list