Commit 47bdb4f4 authored by coderhyme's avatar coderhyme Committed by Uze Choi

Fix a bug of RCSResourceObject.

The problem was that when handler is canceled, segfault ocuured.

Change-Id: I04f4bae70db986245566f97f8388dc39254fb828
Signed-off-by: default avatarcoderhyme <>
Reviewed-on: default avatarjenkins-iotivity <>
Reviewed-by: default avatarUze Choi <>
parent 791d1dc4
......@@ -88,7 +88,7 @@ namespace
RESPONSE invokeHandler(RCSResourceAttributes& attrs, const RCSRequest& request,
std::shared_ptr< HANDLER > handler)
if (handler)
if (handler && *handler)
return (*handler)(request, attrs);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment