Add exception handling logic in things configuration
authorJihun Ha <jihun.ha@samsung.com>
Wed, 14 Oct 2015 01:59:45 +0000 (10:59 +0900)
committerMadan Lanka <lanka.madan@samsung.com>
Wed, 14 Oct 2015 07:04:24 +0000 (07:04 +0000)
commit9888343ffa26d8d1123630a2c1c82789c2176d96
tree7c44783f81f800fd1483ee1e66088db8b0bdb2c6
parentb130d504f9449faed6a0cd2d63ac4c164726f793
Add exception handling logic in things configuration

When calling constructResourceObject, it probably throws an exception.
To avoid a sudden crash for it, we add exception handling to it.

Additionaly, in oicgroup file, there is a condition statement which
may lead wrong way from what we expect. Thus we remove it.

Change-Id: Ibc12cd261ca875738446ad3b10b199ae15497654
Signed-off-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/3865
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
(cherry picked from commit d22a600bab5001dbe770894de100853833a637ef)
Reviewed-on: https://gerrit.iotivity.org/gerrit/3877
resource/csdk/stack/src/oicgroup.c
service/things-manager/sdk/src/ThingsConfiguration.cpp