Blame SOURCES/0001-rhbz-1820868-deref-of-null-xLayoutManager.patch

2a4ee2
From 1a1a8a95d6f36411e1110bf9b6d27b7d58dd685b Mon Sep 17 00:00:00 2001
2a4ee2
From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm@redhat.com>
2a4ee2
Date: Sat, 4 Apr 2020 19:27:41 +0100
2a4ee2
Subject: [PATCH] rhbz#1820868 deref of null xLayoutManager
2a4ee2
2a4ee2
Change-Id: Ib396ef9f5b019b08a181eeb5a8eb983bdb401db4
2a4ee2
---
2a4ee2
 svx/source/dialog/srchdlg.cxx | 2 ++
2a4ee2
 1 file changed, 2 insertions(+)
2a4ee2
2a4ee2
diff --git a/svx/source/dialog/srchdlg.cxx b/svx/source/dialog/srchdlg.cxx
2a4ee2
index 1f95fbe21a7c..445bc318718b 100644
2a4ee2
--- a/svx/source/dialog/srchdlg.cxx
2a4ee2
+++ b/svx/source/dialog/srchdlg.cxx
2a4ee2
@@ -2440,6 +2440,8 @@ OUString SvxSearchDialogWrapper::GetSearchLabel()
2a4ee2
             pViewFrame->GetFrame().GetFrameInterface(), css::uno::UNO_QUERY_THROW);
2a4ee2
     css::uno::Reference< css::frame::XLayoutManager > xLayoutManager;
2a4ee2
     xPropSet->getPropertyValue("LayoutManager") >>= xLayoutManager;
2a4ee2
+    if (!xLayoutManager.is())
2a4ee2
+        return;
2a4ee2
     css::uno::Reference< css::ui::XUIElement > xUIElement =
2a4ee2
         xLayoutManager->getElement("private:resource/toolbar/findbar");
2a4ee2
     if (!xUIElement.is())
2a4ee2
-- 
2a4ee2
2.25.1
2a4ee2