Fix some issues of GroupSynchronization
authorSoyoung Youn <sy01.youn@samsung.com>
Wed, 7 Jan 2015 05:02:53 +0000 (14:02 +0900)
committerSudarshan Prasad <sudarshan.prasad@intel.com>
Thu, 22 Jan 2015 06:52:04 +0000 (06:52 +0000)
commit5dd75a90fd373b67dded37f854a818f23e3d02b3
tree2ef5e4e881c9c4fc3f6e1fea8774e7e309b14f4d
parent1ded4d0a446c9ba84b42377a3bc7084ea1326bbd
Fix some issues of GroupSynchronization
- findGroup() with null callback parameter issue is fixed.
  : return OC_STACK_ERROR, when callback parameter is passed with a null value.
- joinGroup() failure when there is no group match with group type parameter is fixed.
- deleteGroup() failure when delete group with no child is fixed.

Erase "else" statement for guard condition in findCallback NULL checking.

Change-Id: Id00160e3b2e85e03c4e4dd5bd5fb401f6a8bbd42
Signed-off-by: Soyoung Youn <sy01.youn@samsung.com>
(cherry picked from commit e219efd2f099557895748f081c284868c837621b)
Reviewed-on: https://gerrit.iotivity.org/gerrit/199
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
service/things-manager/sdk/src/GroupSynchronization.cpp