From 526c63fbda40368f66db3c84e146d50a172e7163 Mon Sep 17 00:00:00 2001 From: wonny Date: Wed, 23 Mar 2016 15:44:24 +0900 Subject: [PATCH] (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: wonny Reviewed-on: https://gerrit.iotivity.org/gerrit/6205 Reviewed-by: JungYong KIM Reviewed-by: Uze Choi Tested-by: Uze Choi (cherry picked from commit dfcdec1141bab876f45f841c0afaff0b28a2be34) Reviewed-on: https://gerrit.iotivity.org/gerrit/7699 Tested-by: jenkins-iotivity --- service/scene-manager/src/SceneCollection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/scene-manager/src/SceneCollection.cpp b/service/scene-manager/src/SceneCollection.cpp index 6899fc927..789c79bf3 100755 --- a/service/scene-manager/src/SceneCollection.cpp +++ b/service/scene-manager/src/SceneCollection.cpp @@ -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!"); } -- 2.34.1