diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-04-04 19:27:41 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-04-04 21:09:02 +0200 |
commit | 866e666009ba028a646ff32158b450a5ee20d4b4 (patch) | |
tree | 36c77a3e4e485552ce2d6b31c53968d345daebbe /svx | |
parent | 338403833ec43539728d7609e243ae6070aafb3f (diff) |
rhbz#1820868 deref of null xLayoutManager
Change-Id: Ib396ef9f5b019b08a181eeb5a8eb983bdb401db4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91693
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx')
-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 7af720d51c63..ba2a2a09ce9d 100644 --- a/svx/source/dialog/srchdlg.cxx +++ b/svx/source/dialog/srchdlg.cxx @@ -2434,6 +2434,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()) |