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

New commits:
commit 896366b461b5a77ec29566ff9109d33bd5c3be8a
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Fri Feb 5 09:30:47 2021 +0000
Commit:     Caolán McNamara <caol...@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 <caol...@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() );
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to