Fix crash when Layer added to LayoutGroup 14/182514/3
authorAgnelo Vaz <agnelo.vaz@samsung.com>
Mon, 25 Jun 2018 15:13:40 +0000 (16:13 +0100)
committerAgnelo Vaz <agnelo.vaz@samsung.com>
Mon, 25 Jun 2018 19:00:42 +0000 (20:00 +0100)
Change-Id: I17ca7a07509f376ad0a49cd6015147a04886cdfe

dali-toolkit/devel-api/layouting/layout-group-impl.cpp

index 18dd1d6..7f8d9d0 100644 (file)
@@ -451,7 +451,8 @@ void LayoutGroup::ChildAddedToOwner( Actor child )
 {
   LayoutItemPtr childLayout;
   Toolkit::Control control = Toolkit::Control::DownCast( child );
 {
   LayoutItemPtr childLayout;
   Toolkit::Control control = Toolkit::Control::DownCast( child );
-  DALI_LOG_INFO( gLogFilter, Debug::Verbose, "LayoutGroup::ChildAddedToOwner(%s)\n", control.GetName().c_str() );
+
+  DALI_LOG_INFO( gLogFilter, Debug::Verbose, "LayoutGroup::ChildAddedToOwner control(%s)\n", control?control.GetName().c_str():"Invalid" );
 
   if( control ) // Can only support adding Controls, not Actors to layout
   {
 
   if( control ) // Can only support adding Controls, not Actors to layout
   {