N_SE-45839 : add null check code to prevent force close
authorminkyu kim <imetjade.kim@samsung.com>
Thu, 11 Jul 2013 08:05:04 +0000 (17:05 +0900)
committerminkyu kim <imetjade.kim@samsung.com>
Thu, 11 Jul 2013 08:05:04 +0000 (17:05 +0900)
Change-Id: Ie67833a2df0c1f447a2fc22018729e47004f0767

src/ui/FUi_UiEventManager.cpp

index 2fa7709..70ab006 100644 (file)
@@ -371,16 +371,19 @@ _UiEventManager::GetEventListeners(_UiEventType eventType, _UiListenerType liste
 
        if (listenerType == _UI_LISTENER_POST)
        {
+               SysTryReturn(NID_UI, __pPostEventListenerMap, null, E_OBJ_NOT_FOUND, "[E_OBJ_NOT_FOUND] PostEventListenerMap is null.");
                __pPostEventListenerMap->GetValue(eventType, pEventListeners);
        }
        else if (listenerType == _UI_LISTENER_TARGET_POST)
        {
+               SysTryReturn(NID_UI, __pTargetPostEventListenerMap, null, E_OBJ_NOT_FOUND, "[E_OBJ_NOT_FOUND] TargetPostEventListenerMap is null.");
                __pTargetPostEventListenerMap->GetValue(eventType, pEventListeners);
        }
        else
        {
                result r = E_SUCCESS;
 
+               SysTryReturn(NID_UI, __pEventListenerMap, null, E_OBJ_NOT_FOUND, "[E_OBJ_NOT_FOUND] EventListenerMap is null.");
                r = __pEventListenerMap->GetValue(eventType, pEventListeners);
                SysTryReturn(NID_UI, r == E_SUCCESS, null, r, "[%s] Propagating.", GetErrorMessage(r));
        }