Fixed crash in LogsView when system settings are changed while there is no logs. 60/74760/2
authorEugene Kurzberg <i.kurtsberg@samsung.com>
Wed, 15 Jun 2016 11:21:26 +0000 (14:21 +0300)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Thu, 16 Jun 2016 10:16:00 +0000 (03:16 -0700)
Change-Id: I324679c4d7d122df7cafa3febad291ae3d17cd27
Signed-off-by: Eugene Kurzberg <i.kurtsberg@samsung.com>
lib-logs/src/Logs/List/LogsView.cpp

index 13bbfc0..a1bad52 100644 (file)
@@ -247,6 +247,10 @@ void LogsView::setLastGroupItem(LogGroupItem *groupItem)
 
 void LogsView::onSettingsChanged(system_settings_key_e key)
 {
+       if (!m_Genlist) {
+               return;
+       }
+
        if (key == SYSTEM_SETTINGS_KEY_LOCALE_COUNTRY ||
                        key == SYSTEM_SETTINGS_KEY_TIME_CHANGED) {
                elm_genlist_clear(m_Genlist->getEvasObject());