Check NULL return value in builder-impl.cpp 70/174070/2
authorSeoyeon Kim <seoyeon2.kim@samsung.com>
Wed, 28 Mar 2018 02:25:14 +0000 (11:25 +0900)
committerSeoyeon Kim <seoyeon2.kim@samsung.com>
Wed, 28 Mar 2018 02:39:53 +0000 (11:39 +0900)
Change-Id: I898260969132bdfcca32ece6c9fdac4efe693f08
Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
dali-toolkit/internal/builder/builder-impl.cpp

index 5a18bef4a46705dfdcc1c3b38f29f720488efd95..7f1b4412f710137b277806e9b998d0f8afb1c9b7 100644 (file)
@@ -1243,7 +1243,11 @@ void Builder::RecordStyle( StylePtr           style,
           }
           else
           {
-            style->visuals.Add(visual.first, *property.GetMap());
+            Property::Map* map = property.GetMap();
+            if( map )
+            {
+              style->visuals.Add( visual.first, *map );
+            }
           }
         }
       }