[Libreoffice-commits] core.git: sd/source

Markus Mohrhard markus.mohrhard at googlemail.com
Wed Jun 15 22:49:20 UTC 2016


 sd/source/ui/sidebar/SlideBackground.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 75ca2defe8edba8d198a05e7f64674418171536d
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Wed Jun 15 23:34:33 2016 +0200

    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 at libreoffice.org>
    Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>

diff --git a/sd/source/ui/sidebar/SlideBackground.cxx b/sd/source/ui/sidebar/SlideBackground.cxx
index 3ca1d7d..279d8e4 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:


More information about the Libreoffice-commits mailing list