Added the exception handling code 10/39010/2
authorHyojung Jo <hj903.jo@samsung.com>
Wed, 6 May 2015 23:48:00 +0000 (08:48 +0900)
committerHyojung Jo <hj903.jo@samsung.com>
Thu, 7 May 2015 04:25:17 +0000 (13:25 +0900)
Change-Id: Iec4053e7876cc924277e8365e705b414753f14c6
Signed-off-by: Hyojung Jo <hj903.jo@samsung.com>
src/layout/AppsBaseLayout.cpp

index 1e32af9..e86706d 100644 (file)
@@ -475,6 +475,11 @@ Eina_List *CAppsBaseLayout::m_GetCategoryList(void)
                }
        }
 
+       if (!ac) {
+               _ERR("Failed to get AppContent instance");
+               return NULL;
+       }
+
        ac->SetQuery(CAppContent::TYPE_APPS);
        ac->BeginQuery();
        while (ac->MoveNext()) {