From bae01385c895a100b5371879889e606927cff877 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 20 Nov 2013 09:03:19 +0000 Subject: Resolves: fdo#71527 don't crash in presenter console but we're now dropping slides in there for some reason so this is just a don't crash band-aid and not the fix for the deeper problem Change-Id: I2f70471d03979ffb86b6289e7a432f4505c1b556 --- sdext/source/presenter/PresenterPaneContainer.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sdext/source') diff --git a/sdext/source/presenter/PresenterPaneContainer.cxx b/sdext/source/presenter/PresenterPaneContainer.cxx index 105c1240f760..c8de7bfbdab3 100644 --- a/sdext/source/presenter/PresenterPaneContainer.cxx +++ b/sdext/source/presenter/PresenterPaneContainer.cxx @@ -192,7 +192,8 @@ PresenterPaneContainer::SharedPaneDescriptor { pDescriptor->mxView = rxView; pDescriptor->mpViewBackground = rpViewBackground; - pDescriptor->mxPane->SetBackground(rpViewBackground); + if (pDescriptor->mxPane.is()) + pDescriptor->mxPane->SetBackground(rpViewBackground); try { if ( ! pDescriptor->maViewInitialization.empty()) -- cgit v1.2.3