Remove left over references to ImageActor & ShaderEffect
[platform/core/uifw/dali-core.git] / dali / internal / event / animation / linear-constrainer-impl.cpp
index 593e62b..11ef59e 100644 (file)
@@ -119,12 +119,15 @@ Property::Value LinearConstrainer::GetDefaultProperty( Property::Index index ) c
   {
     Property::Value value( Property::ARRAY );
     Property::Array* array = value.GetArray();
-    DALI_ASSERT_DEBUG( array ); // should always exist in this case
     size_t count( mValue.Size() );
-    array->Reserve( count );
-    for( size_t i( 0 ); i != count; ++i )
+
+    if( array )
     {
-      array->PushBack( mValue[i] );
+      array->Reserve( count );
+      for( size_t i( 0 ); i != count; ++i )
+      {
+        array->PushBack( mValue[i] );
+      }
     }
     return value;
   }
@@ -132,12 +135,15 @@ Property::Value LinearConstrainer::GetDefaultProperty( Property::Index index ) c
   {
     Property::Value value( Property::ARRAY );
     Property::Array* array = value.GetArray();
-    DALI_ASSERT_DEBUG( array ); // should always exist in this case
     size_t count( mValue.Size() );
-    array->Reserve( count );
-    for( size_t i( 0 ); i != count; ++i )
+
+    if( array )
     {
-      array->PushBack( mProgress[i] );
+      array->Reserve( count );
+      for( size_t i( 0 ); i != count; ++i )
+      {
+        array->PushBack( mProgress[i] );
+      }
     }
     return value;
   }