Commit 79bf0872 authored by Jihun Ha's avatar Jihun Ha Committed by Madan Lanka

Add null checking for observe request in easy setup

Checking if entityHandlerRequest is NULL is added.

Change-Id: I79bf75c9f53f28b9c0c679a5dd7371552764b5cd
Signed-off-by: default avatarJihun Ha <jihun.ha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13323Reviewed-by: default avatarHeewon Park <h_w.park@samsung.com>
Tested-by: default avatarjenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: default avatarMadan Lanka <lanka.madan@samsung.com>
parent 539427a8
......@@ -1223,7 +1223,7 @@ OCEntityHandlerResult OCEntityHandlerCb(OCEntityHandlerFlag flag,
ehRet = OC_EH_ERROR;
}
}
if (flag & OC_OBSERVE_FLAG)
if (entityHandlerRequest && (flag & OC_OBSERVE_FLAG))
{
OIC_LOG(INFO, ES_RH_TAG, "Flag includes OC_OBSERVE_FLAG");
......
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