nCodeStart = strKey.find("/");
+ if (strKey.length() == 0) {
+ MAPS_LOGE("[error] Key type fault : Key is empty.");
+ return HERE_ERROR_INVALID_PARAMETER;
+ }
+
if(nCodeStart == 0 || nCodeStart >= (strKey.length()-1)) {
MAPS_LOGE("[error] Key type fault : Key type should be as like XXXXX/YYYYY");
return HERE_ERROR_INVALID_PARAMETER;
if(!ApplicationContext::GetInstance().Initialize(strAppCode, strAppId, strRequestAppId))
return HERE_ERROR_INVALID_OPERATION;
- //MAPS_LOGD("[success] credential setted to 'XXXXX/XXXXX'");
-
return HERE_ERROR_NONE;
}
if (*szKey == NULL)
return HERE_ERROR_INVALID_OPERATION;
- //MAPS_LOGD("current credential : %s", *szKey);
-
return HERE_ERROR_NONE;
}