From: Jihoon Kim Date: Mon, 6 Feb 2017 22:48:23 +0000 (+0900) Subject: Fix dereference after NULL defects detected by static anlysis tool X-Git-Tag: accepted/tizen/3.0/common/20170208.145348~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=27e19eb9fd3ee87880f095bd5d1014d4450ee18b;p=platform%2Fcore%2Fuifw%2Flibscl-ui.git Fix dereference after NULL defects detected by static anlysis tool Change-Id: Ifab4ac9e4c571032c8bd212a34bbc186c771783b Signed-off-by: Jihoon Kim --- diff --git a/scl/scluiimpl.cpp b/scl/scluiimpl.cpp index 9be28cf..0852132 100644 --- a/scl/scluiimpl.cpp +++ b/scl/scluiimpl.cpp @@ -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; }