[Tizen] Check for NULL return value in button-impl.cpp 51/128251/1
authorSeoyeon Kim <seoyeon2.kim@samsung.com>
Mon, 8 May 2017 07:50:01 +0000 (16:50 +0900)
committerSeoyeon Kim <seoyeon2.kim@samsung.com>
Mon, 8 May 2017 07:50:48 +0000 (16:50 +0900)
Change-Id: I10ee95b46237a483df92cd4f2a7098ead73028f4
Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
dali-toolkit/internal/controls/buttons/button-impl.cpp

index 79ac7db..08beee1 100644 (file)
@@ -363,7 +363,10 @@ std::string Button::GetLabelText() const
   if ( labelProperty )
   {
     Property::Value* value = labelProperty->Find( Toolkit::TextVisual::Property::TEXT );
-    value->Get( textLabel );
+    if( value )
+    {
+      value->Get( textLabel );
+    }
   }
 
   return textLabel;