(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>
Mon, 11 Apr 2016 22:57:02 +0000 (22:57 +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>
(cherry picked from commit dfcdec1141bab876f45f841c0afaff0b28a2be34)
Reviewed-on: https://gerrit.iotivity.org/gerrit/7699
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
service/scene-manager/src/SceneCollection.cpp

index 6899fc92773d42ede2343acb7382868b4dbacfee..789c79bf32312d27026a8cd1c68c22145ccf1161 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!");
             }