summaryrefslogtreecommitdiff
path: root/sdext
diff options
context:
space:
mode:
authorThorsten Behrens <thb@documentfoundation.org>2013-11-29 18:26:28 +0100
committerThorsten Behrens <thb@documentfoundation.org>2013-11-29 18:26:28 +0100
commit1b10205c2cb952ab43e30706c05f78d6e8f642c3 (patch)
treee26c6fd42b76daa352ec5ea1a0e99881949af427 /sdext
parentb807b2d9291a2328a55de55d67c4874803d8b7fd (diff)
Fix fdo#71527 no unguarded ptr dereference here.
This is the real problem - mxPane can be validly NULL. Change-Id: Ie8d055db9bfb68cb9031fa970518343f5aec6619
Diffstat (limited to 'sdext')
-rw-r--r--sdext/source/presenter/PresenterPaneContainer.cxx3
1 files changed, 2 insertions, 1 deletions
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())