[model] Redwood, B1, B2
[binary_type] PDA
[customer] OPEN
[issue#] N/A
[problem] prevent issue: dereference before null check
[cause] dereference before null check
[solution] added null check code
[team] Input Framework
[request] N/A
[horizontal_expansion] N/A
Change-Id: I4fe9af0662c7c8a0a409e372f83e9746e0950f70
package_info_foreach_app_from_package (pkg_info, PACKAGE_INFO_UIAPP, app_info_cb, helper_info);
- if (helper_info->uuid.length () > 0) {
+ if (pkg_label && pkg_icon_path && (helper_info->uuid.length () > 0)) {
helper_info->name = String (pkg_label);
helper_info->icon = String (pkg_icon_path);
helper_info->option = SCIM_HELPER_STAND_ALONE | SCIM_HELPER_NEED_SCREEN_INFO | SCIM_HELPER_NEED_SPOT_LOCATION_INFO | SCIM_HELPER_AUTO_RESTART;