sfx2/source/appl/workwin.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 21418f446073131e253b32f4ac098c449330cc72
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Thu Apr 4 09:07:29 2019 +0100
Commit:     Michael Stahl <michael.st...@cib.de>
CommitDate: Mon Apr 8 11:59:47 2019 +0200

    rhbz#1696037 null-deref
    
    Change-Id: I1a9eb5b1b38e2ec651f2d0286337106ab565a9dc
    Reviewed-on: https://gerrit.libreoffice.org/70244
    Tested-by: Jenkins
    Reviewed-by: Michael Stahl <michael.st...@cib.de>

diff --git a/sfx2/source/appl/workwin.cxx b/sfx2/source/appl/workwin.cxx
index b7f6eddd9777..b3c12fe6bf16 100644
--- a/sfx2/source/appl/workwin.cxx
+++ b/sfx2/source/appl/workwin.cxx
@@ -1501,6 +1501,11 @@ void SfxWorkWindow::HidePopups_Impl(bool bHide, 
sal_uInt16 nId )
         {
             vcl::Window *pWin = pCW->GetWindow();
             SfxChild_Impl *pChild = FindChild_Impl(*pWin);
+            if (!pChild)
+            {
+                SAL_WARN("sfx.appl", "missing SfxChild_Impl child!");
+                continue;
+            }
             if (bHide)
             {
                 pChild->nVisible &= ~SfxChildVisibility::ACTIVE;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to