Commit dfcdec11 authored by wonny's avatar wonny Committed by Uze Choi

(IOT-1006) modified sceneCollection

resolved jira issue IOT-1006

This issue is caused by checking sceneName existed or not.
modified checking logic.

Change-Id: I6ef17e1ef9c7182852ea783e71ed57dd7b81efbe
Signed-off-by: default avatarwonny <jw_wonny.cha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/6205Reviewed-by: default avatarJungYong KIM <jyong2.kim@samsung.com>
Reviewed-by: default avatarUze Choi <uzchoi@samsung.com>
Tested-by: default avatarUze Choi <uzchoi@samsung.com>
parent 6e204b3e
......@@ -58,7 +58,7 @@ namespace OIC
{
auto sceneValues = m_sceneCollectionResource->getSceneValues();
auto it = std::find(sceneValues.begin(), sceneValues.end(), sceneName);
if(it != sceneValues.end())
if(it == sceneValues.end())
{
throw RCSInvalidParameterException("Scene Name is Invalid!");
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment