Fixed bug of sending empty child attribute at Scene List Resource response.
authorjyong2.kim <jyong2.kim@samsung.com>
Fri, 26 Feb 2016 06:44:58 +0000 (15:44 +0900)
committerUze Choi <uzchoi@samsung.com>
Sat, 27 Feb 2016 05:11:20 +0000 (05:11 +0000)
commitcdc0a89685fc7e4964ac924985529065c3ba613e
tree1db6300a36e8269a6a2a5d1e3a9c5f553e42cd92
parent74794dee8c5457e30e0591f55e5905c6466f13bd
Fixed bug of sending empty child attribute at Scene List Resource response.

If Scene resource has not children, these attribute's value is empty.
But CBOR parser can not parsing empty attribute.
This patch, attribute remove when the attribute's value is empty.

Change-Id: Iaa0be2cf0df19211b2b2598ec47da94286068e4c
Signed-off-by: jyong2.kim <jyong2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/5215
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
service/scene-manager/src/SceneListResource.cpp