summaryrefslogtreecommitdiff
path: root/sd/source
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source')
-rw-r--r--sd/source/filter/eppt/pptexanimations.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/sd/source/filter/eppt/pptexanimations.cxx b/sd/source/filter/eppt/pptexanimations.cxx
index 3367a93e1e42..a4d28683f8c0 100644
--- a/sd/source/filter/eppt/pptexanimations.cxx
+++ b/sd/source/filter/eppt/pptexanimations.cxx
@@ -1302,10 +1302,13 @@ void AnimationExporter::exportAnimEvent( SvStream& rStrm, const Reference< XAnim
// taking the first child
Reference< XEnumerationAccess > xEA( xNode, UNO_QUERY_THROW );
Reference< XEnumeration > xE( xEA->createEnumeration(), UNO_QUERY_THROW );
-// while( xE->hasMoreElements() )
+ if ( xE.is() && xE->hasMoreElements() )
{
- Reference< XAnimationNode > xClickNode( xE->nextElement(), UNO_QUERY );
- aAny = xClickNode->getBegin();
+// while( xE->hasMoreElements() )
+ {
+ Reference< XAnimationNode > xClickNode( xE->nextElement(), UNO_QUERY );
+ aAny = xClickNode->getBegin();
+ }
}
}
else if ( nFlags & 0x40 )