animator: Fix NULL check

This commit is contained in:
Emmanuele Bassi 2012-03-15 17:51:22 +00:00
parent fa9be0ba73
commit cbcc84022e

View 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);
}