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>
{
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!");
}