Fix fdo#71527 no unguarded ptr dereference here.

This is the real problem - mxPane can be validly NULL.

Change-Id: Ie8d055db9bfb68cb9031fa970518343f5aec6619
This commit is contained in:
Thorsten Behrens 2013-11-29 18:26:28 +01:00
parent b807b2d929
commit 1b10205c2c

View File

@ -192,7 +192,8 @@ PresenterPaneContainer::SharedPaneDescriptor
{ {
pDescriptor->mxView = rxView; pDescriptor->mxView = rxView;
pDescriptor->mpViewBackground = rpViewBackground; pDescriptor->mpViewBackground = rpViewBackground;
pDescriptor->mxPane->SetBackground(rpViewBackground); if (pDescriptor->mxPane.is())
pDescriptor->mxPane->SetBackground(rpViewBackground);
try try
{ {
if ( ! pDescriptor->maViewInitialization.empty()) if ( ! pDescriptor->maViewInitialization.empty())