diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-04-04 09:07:29 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-04-04 11:31:37 +0200 |
commit | 7aa14e80d2d9d94ba468b83db32fc1049d1d8b65 (patch) | |
tree | b8183b0261a6ea44c7c7b8015577d312aea8016f /sfx2 | |
parent | 9e772cffcf373620114f005993c56c38e7ac84f2 (diff) |
rhbz#1696037 null-deref
Change-Id: I1a9eb5b1b38e2ec651f2d0286337106ab565a9dc
Reviewed-on: https://gerrit.libreoffice.org/70239
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/workwin.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sfx2/source/appl/workwin.cxx b/sfx2/source/appl/workwin.cxx index 4bc31eb3de44..a4e281e67c83 100644 --- a/sfx2/source/appl/workwin.cxx +++ b/sfx2/source/appl/workwin.cxx @@ -1493,6 +1493,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; |