(IOT-1006) modified sceneCollection
authorwonny <jw_wonny.cha@samsung.com>
Wed, 23 Mar 2016 06:44:24 +0000 (15:44 +0900)
committerUze Choi <uzchoi@samsung.com>
Thu, 24 Mar 2016 02:37:49 +0000 (02:37 +0000)
resolved jira issue IOT-1006

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

Change-Id: I6ef17e1ef9c7182852ea783e71ed57dd7b81efbe
Signed-off-by: wonny <jw_wonny.cha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/6205
Reviewed-by: JungYong KIM <jyong2.kim@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
service/scene-manager/src/SceneCollection.cpp

index 6899fc9..789c79b 100755 (executable)
@@ -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!");
             }