if (x_list.property.ext_num < MEDIA_CODEC_MAX_PROPERTY_EXT) { \
strncpy(x_list.property.ext_name[x_list.property.ext_num], token, MEDIA_CODEC_INI_STRLEN - 1); \
token = strtok_r(NULL, delimiters, &usr_ptr); \
+ if (!token) { \
+ LOGW("NULL value for property[%s]", x_list.property.ext_name[x_list.property.ext_num]); \
+ break; \
+ } \
LOGI(" token[property value:%s]", token);\
strncpy(x_list.property.ext_value[x_list.property.ext_num], token, MEDIA_CODEC_INI_STRLEN - 1); \
x_list.property.ext_num++; \