diff options
Diffstat (limited to 'sd/source/ui/unoidl')
-rw-r--r-- | sd/source/ui/unoidl/unoobj.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/unoidl/unoobj.cxx b/sd/source/ui/unoidl/unoobj.cxx index 75c997f5f23d..bfd6b4a2cbea 100644 --- a/sd/source/ui/unoidl/unoobj.cxx +++ b/sd/source/ui/unoidl/unoobj.cxx @@ -544,9 +544,9 @@ void SAL_CALL SdXShape::setPropertyValue( const OUString& aPropertyName, const : if(bIsAnimation) { SdrObjGroup* pGroup = dynamic_cast< SdrObjGroup* >(pObj); - SdPage* pPage = dynamic_cast< SdPage* >(pGroup->GetPage()); + SdPage* pPage = pGroup ? dynamic_cast< SdPage* >(pGroup->GetPage()) : NULL; - if(pGroup && pPage) + if (pPage) { // #i42894# Animated Group object, migrate that effect EffectMigration::CreateAnimatedGroup(*pGroup, *pPage); |