Fix SVACE issue 40/231140/2
authorSeungho, Baek <sbsh.baek@samsung.com>
Fri, 17 Apr 2020 10:52:08 +0000 (19:52 +0900)
committerSeungho, Baek <sbsh.baek@samsung.com>
Fri, 17 Apr 2020 11:19:49 +0000 (20:19 +0900)
Change-Id: Iebcc0899c7ae8d7f0dd1b6d86862dbfa6f229220
Signed-off-by: Seungho, Baek <sbsh.baek@samsung.com>
dali/public-api/object/any.h

index b093822..0dbf325 100644 (file)
@@ -183,8 +183,9 @@ public:
     else if( mContainer->GetType() != typeid( Type ) ) // Check if the value has the same value than the Any type.
     {
       AssertAlways( "Any::Get(). Trying to retrieve a value of a different type than the template one." );
+      return static_cast< AnyContainerImpl< Type >* >( mContainer )->GetValue();
     }
-    return static_cast< AnyContainerImpl< Type >* >( mContainer )->GetValue();
+    return NULL;
   }
 
   /**