From 1b10205c2cb952ab43e30706c05f78d6e8f642c3 Mon Sep 17 00:00:00 2001 From: Thorsten Behrens Date: Fri, 29 Nov 2013 18:26:28 +0100 Subject: [PATCH] Fix fdo#71527 no unguarded ptr dereference here. This is the real problem - mxPane can be validly NULL. Change-Id: Ie8d055db9bfb68cb9031fa970518343f5aec6619 --- sdext/source/presenter/PresenterPaneContainer.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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())