summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-12-09 11:09:21 +0000
committerCaolán McNamara <caolanm@redhat.com>2016-12-09 11:14:03 +0000
commitf5edbb4158e86bfea7267115395b64e60fd61dc7 (patch)
treec52a172b940334dbe540052438f31f7a2257f861 /sfx2
parenta0ab0c79fdbaa0a915bc29655cfd03f378599203 (diff)
Related: rhbz#1397939 crash with null pSidebarController
Change-Id: I7627ff30564b2de61669c71dafd15e7b1778b5c6
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/sidebar/Panel.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/sidebar/Panel.cxx b/sfx2/source/sidebar/Panel.cxx
index 8b2bb7bd67ca..b87d0ddb57e4 100644
--- a/sfx2/source/sidebar/Panel.cxx
+++ b/sfx2/source/sidebar/Panel.cxx
@@ -115,14 +115,14 @@ void Panel::SetUIElement (const Reference<ui::XUIElement>& rxElement)
void Panel::SetExpanded (const bool bIsExpanded)
{
- SidebarController* pSidebarController= SidebarController::GetSidebarControllerForFrame(mxFrame);
+ SidebarController* pSidebarController = SidebarController::GetSidebarControllerForFrame(mxFrame);
if (mbIsExpanded != bIsExpanded)
{
mbIsExpanded = bIsExpanded;
maDeckLayoutTrigger();
- if (maContextAccess)
+ if (maContextAccess && pSidebarController)
{
pSidebarController->GetResourceManager()->StorePanelExpansionState(
msPanelId,