don't de-reference null pointer - fix crash with certain PPTX files
This commit is contained in:
parent
accf94cab8
commit
3cc072ce7a
1 changed files with 7 additions and 5 deletions
|
@ -246,11 +246,13 @@ void PresentationFragmentHandler::endDocument() throw (SAXException, RuntimeExce
|
|||
}
|
||||
|
||||
// importing slide page
|
||||
pSlidePersistPtr->setMasterPersist( pMasterPersistPtr );
|
||||
pSlidePersistPtr->setTheme( pMasterPersistPtr->getTheme() );
|
||||
Reference< drawing::XMasterPageTarget > xMasterPageTarget( pSlidePersistPtr->getPage(), UNO_QUERY );
|
||||
if( xMasterPageTarget.is() )
|
||||
xMasterPageTarget->setMasterPage( pMasterPersistPtr->getPage() );
|
||||
if (pMasterPersistPtr.get()) {
|
||||
pSlidePersistPtr->setMasterPersist( pMasterPersistPtr );
|
||||
pSlidePersistPtr->setTheme( pMasterPersistPtr->getTheme() );
|
||||
Reference< drawing::XMasterPageTarget > xMasterPageTarget( pSlidePersistPtr->getPage(), UNO_QUERY );
|
||||
if( xMasterPageTarget.is() )
|
||||
xMasterPageTarget->setMasterPage( pMasterPersistPtr->getPage() );
|
||||
}
|
||||
rFilter.getDrawPages().push_back( pSlidePersistPtr );
|
||||
rFilter.setActualSlidePersist( pSlidePersistPtr );
|
||||
importSlide( xSlideFragmentHandler, pSlidePersistPtr );
|
||||
|
|
Loading…
Reference in a new issue