summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-04-04 09:07:29 +0100
committerMichael Stahl <Michael.Stahl@cib.de>2019-04-08 11:59:47 +0200
commit21418f446073131e253b32f4ac098c449330cc72 (patch)
tree53d674bc9f2147bf8bf2cdc0a40c375933d601df /sfx2
parent709fc73b2c538f0c15d8c94ffeb5d8234a00a01d (diff)
rhbz#1696037 null-deref
Change-Id: I1a9eb5b1b38e2ec651f2d0286337106ab565a9dc Reviewed-on: https://gerrit.libreoffice.org/70244 Tested-by: Jenkins Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/workwin.cxx5
1 files changed, 5 insertions, 0 deletions
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;