diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-12-09 11:09:21 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-12-09 11:14:03 +0000 |
commit | f5edbb4158e86bfea7267115395b64e60fd61dc7 (patch) | |
tree | c52a172b940334dbe540052438f31f7a2257f861 /sfx2 | |
parent | a0ab0c79fdbaa0a915bc29655cfd03f378599203 (diff) |
Related: rhbz#1397939 crash with null pSidebarController
Change-Id: I7627ff30564b2de61669c71dafd15e7b1778b5c6
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/sidebar/Panel.cxx | 4 |
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, |