Fix dereference after NULL defects detected by static anlysis tool 23/113223/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Mon, 6 Feb 2017 22:48:23 +0000 (07:48 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Mon, 6 Feb 2017 22:48:23 +0000 (07:48 +0900)
Change-Id: Ifab4ac9e4c571032c8bd212a34bbc186c771783b
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
scl/scluiimpl.cpp

index 9be28cf..0852132 100644 (file)
@@ -1176,7 +1176,8 @@ CSCLUIImpl::get_button_geometry(const sclchar* custom_id, SclRectangle *rectangl
 {
     if (m_initialized) {
         CSCLResourceCache *cache= CSCLResourceCache::get_instance();
-        return cache->get_button_geometry(custom_id, rectangle);
+        if (cache)
+            return cache->get_button_geometry(custom_id, rectangle);
     }
     return FALSE;
 }