diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-08-02 14:04:15 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-08-02 15:04:47 +0000 |
commit | dadd4abdadb970dd4912caaa56b7250c3a30cc9e (patch) | |
tree | 55a01a2908c91fa695158010893da2b7aa3199c4 /svx | |
parent | bb9c9fdd3d5f71ab49d3a5189af8e13ef5239f4a (diff) |
add missing nullptr check
See
http://crashreport.libreoffice.org/stats/crash_details/173c2c82-7241-44b4-8394-2b5635f7f938
Change-Id: I2a03c6d6a77e3c872b8507c72b47a05db20fd564
Reviewed-on: https://gerrit.libreoffice.org/27791
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'svx')
-rwxr-xr-x | svx/source/dialog/srchdlg.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/svx/source/dialog/srchdlg.cxx b/svx/source/dialog/srchdlg.cxx index de310ce10d08..d63c90f318a3 100755 --- a/svx/source/dialog/srchdlg.cxx +++ b/svx/source/dialog/srchdlg.cxx @@ -2377,8 +2377,12 @@ SfxChildWinInfo SvxSearchDialogWrapper::GetInfo() const static vcl::Window* lcl_GetSearchLabelWindow() { + SfxViewFrame* pViewFrame = SfxViewFrame::Current(); + if (!pViewFrame) + return nullptr; + css::uno::Reference< css::beans::XPropertySet > xPropSet( - SfxViewFrame::Current()->GetFrame().GetFrameInterface(), css::uno::UNO_QUERY_THROW); + pViewFrame->GetFrame().GetFrameInterface(), css::uno::UNO_QUERY_THROW); css::uno::Reference< css::frame::XLayoutManager > xLayoutManager; xPropSet->getPropertyValue("LayoutManager") >>= xLayoutManager; css::uno::Reference< css::ui::XUIElement > xUIElement = |