summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-06-15 23:34:33 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-06-15 22:48:43 +0000
commit75ca2defe8edba8d198a05e7f64674418171536d (patch)
treeafedef3070dd8b1a426e51159707a1f06d9246fd /sd
parent4f32fcf59854fe1abe375c8702cc5c4258abbf3d (diff)
SfxObjectShell::Current may return nullptr
See http://crashreport.libreoffice.org/stats/crash_details/caa7efba-fbe8-4c58-966d-c4bc356b5a63 Change-Id: Idc8b3a2e482a5423080735f46f50d415835f747d Reviewed-on: https://gerrit.libreoffice.org/26341 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/sidebar/SlideBackground.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sd/source/ui/sidebar/SlideBackground.cxx b/sd/source/ui/sidebar/SlideBackground.cxx
index 3ca1d7d40c10..279d8e4471ac 100644
--- a/sd/source/ui/sidebar/SlideBackground.cxx
+++ b/sd/source/ui/sidebar/SlideBackground.cxx
@@ -159,6 +159,9 @@ void SlideBackground::Update()
{
const drawing::FillStyle eXFS = (drawing::FillStyle)mpFillStyle->GetSelectEntryPos();
SfxObjectShell* pSh = SfxObjectShell::Current();
+ if (!pSh)
+ return;
+
switch(eXFS)
{
case drawing::FillStyle_NONE: