summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchanywa <cbible.kim@samsung.com>2017-04-13 12:41:44 +0900
committerchanywa <cbible.kim@samsung.com>2017-04-13 14:38:22 +0900
commit61a76710d1accca676ae2c242e60b418720d0c45 (patch)
treefdadce99c85370c12e49dfcb69ac4b588aca3ce9
parent51e3f42861b6928f84d57addc44c8aca7c13481a (diff)
downloadmaps-plugin-here-submit/tizen/20170414.101325.tar.gz
maps-plugin-here-submit/tizen/20170414.101325.tar.bz2
maps-plugin-here-submit/tizen/20170414.101325.zip
add a log message to notify separately that provider key is empty or invalid formatsubmit/tizen/20170414.101325accepted/tizen/unified/20170414.164132
Change-Id: Ia25c1f778c4a97e7ce8f73d6c3396d03d48d97ed
-rw-r--r--src/here_manager.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/here_manager.cpp b/src/here_manager.cpp
index ff147b0..e3f9636 100644
--- a/src/here_manager.cpp
+++ b/src/here_manager.cpp
@@ -249,6 +249,11 @@ here_error_e HereManager::SetCredentials(const char *szKey)
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;
@@ -274,8 +279,6 @@ here_error_e HereManager::SetCredentials(const char *szKey)
if(!ApplicationContext::GetInstance().Initialize(strAppCode, strAppId, strRequestAppId))
return HERE_ERROR_INVALID_OPERATION;
- //MAPS_LOGD("[success] credential setted to 'XXXXX/XXXXX'");
-
return HERE_ERROR_NONE;
}
@@ -295,8 +298,6 @@ here_error_e HereManager::GetCredentials(char **szKey)
if (*szKey == NULL)
return HERE_ERROR_INVALID_OPERATION;
- //MAPS_LOGD("current credential : %s", *szKey);
-
return HERE_ERROR_NONE;
}