[IOT-2412]Segment faults in ResourceContainerImpl
authorabitha.s <abitha.s@samsung.com>
Wed, 28 Jun 2017 13:24:18 +0000 (18:54 +0530)
committerUze Choi <uzchoi@samsung.com>
Mon, 3 Jul 2017 08:12:26 +0000 (08:12 +0000)
commitf55f2a3e68afb2160690768dd8b2a0c8cdf5c787
tree989251484d2677b5e27ed6e42e0784727e912317
parentc08dfd48ff1f179e3264c82db9355c188f0678d2
[IOT-2412]Segment faults in ResourceContainerImpl

function is calling erase on the map container which will invalidate it. Hence, added guard calls.

Change-Id: I555895089d8dfa0a3a7f0d804dd5ccef8e4e1ece
Signed-off-by: abitha.s <abitha.s@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/21097
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
service/resource-container/src/ResourceContainerImpl.cpp