- Return value of a function 'icu::TimeZone::createDefault' is dereferenced at utils_i18n_timezone.cpp:205 without checking,
Change-Id: Icdf36c2a13cb13b52b5cbc57d0250237f09909b5
Signed-off-by: Hyunjee Kim <hj0426.kim@samsung.com>
{
retv_if(timezone == NULL, I18N_ERROR_INVALID_PARAMETER);
*timezone = TimeZone::createDefault();
+
//Implement fallback mechanism to set the time zone to default time zone
+ if (*timezone == NULL)
+ return I18N_ERROR_INVALID_PARAMETER;
char* zoneInfo = NULL;
UnicodeString TimezoneID;
((TimeZone *) *timezone)->getID(TimezoneID);