From: Jan Olszak Date: Fri, 7 Dec 2012 07:56:35 +0000 (+0100) Subject: [Prevent] Ensure pointer is not NULL before it's referenced. X-Git-Tag: submit/trunk/20121213.044624~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6cf1396d775ca0359083b8db7032f971a215c15e;p=platform%2Fframework%2Fweb%2Fwrt-plugins-common.git [Prevent] Ensure pointer is not NULL before it's referenced. [Issue#] ace_param_list->items could have been NULL when referenced [Bug] N/A [Cause] N/A [Solution] Small change in conditions check. [Verification] Build plugins. Run plugin-common tests. Change-Id: I0b0ace5e95615311680fc29de6a421f56f7f0b9b --- diff --git a/src/wrt-popup/ace/popup-bin/Popup.cpp b/src/wrt-popup/ace/popup-bin/Popup.cpp index 9799f51..abc614f 100644 --- a/src/wrt-popup/ace/popup-bin/Popup.cpp +++ b/src/wrt-popup/ace/popup-bin/Popup.cpp @@ -158,7 +158,7 @@ static int _ace_params_deserializer(ace_param_list_t* ace_param_list, Wrt::Popup } static void _ace_params_finalize(ace_param_list_t* ace_param_list) { - if (NULL == ace_param_list || ace_param_list->items) { + if (!ace_param_list || !ace_param_list->items) { LogDebug("List is null, nothing to do"); return; }