diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-04-04 19:27:41 +0100 |
---|---|---|
committer | Michael Stahl <michael.stahl@cib.de> | 2020-04-06 11:23:36 +0200 |
commit | b888dff2f010ae20216c40f39cf6dee66d1fea14 (patch) | |
tree | c95dead1ee435fb3ec5cbe3db0f1b9bf0b256f76 | |
parent | 41d90ebc2f53df095c8b66d3cd31adef2a5304c9 (diff) |
rhbz#1820868 deref of null xLayoutManager
Change-Id: Ib396ef9f5b019b08a181eeb5a8eb983bdb401db4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91711
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@cib.de>
-rw-r--r-- | svx/source/dialog/srchdlg.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/svx/source/dialog/srchdlg.cxx b/svx/source/dialog/srchdlg.cxx index 1f95fbe21a7c..445bc318718b 100644 --- a/svx/source/dialog/srchdlg.cxx +++ b/svx/source/dialog/srchdlg.cxx @@ -2440,6 +2440,8 @@ OUString SvxSearchDialogWrapper::GetSearchLabel() pViewFrame->GetFrame().GetFrameInterface(), css::uno::UNO_QUERY_THROW); css::uno::Reference< css::frame::XLayoutManager > xLayoutManager; xPropSet->getPropertyValue("LayoutManager") >>= xLayoutManager; + if (!xLayoutManager.is()) + return OUString(); css::uno::Reference< css::ui::XUIElement > xUIElement = xLayoutManager->getElement("private:resource/toolbar/findbar"); if (!xUIElement.is()) |