animator: Fix NULL check
authorEmmanuele Bassi <ebassi@linux.intel.com>
Thu, 15 Mar 2012 17:51:22 +0000 (17:51 +0000)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Thu, 15 Mar 2012 17:51:22 +0000 (17:51 +0000)
clutter/clutter-animator.c

index 0b863bc..57af878 100644 (file)
@@ -1458,7 +1458,7 @@ again:
   g_hash_table_remove_all (priv->properties);
 
   /* if the animator is already running reinitialize internal iterators */
-  if (clutter_timeline_is_playing (priv->timeline))
+  if (priv->timeline != NULL && clutter_timeline_is_playing (priv->timeline))
     animation_animator_started (priv->timeline, animator);
 }