Change-Id: I6628c52bd3536cf57a320008e46b61968927e3f6
Signed-off-by: Doug Hudson <douglas.hudson@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/468
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
response.result = CAToOCStackResult(responseInfo->result);
response.resJSONPayload = (unsigned char*)responseInfo->info.payload;
response.numRcvdVendorSpecificHeaderOptions = 0;
- if(responseInfo->info.numOptions > 0)
+ if(responseInfo->info.options && responseInfo->info.numOptions > 0)
{
int start = 0;
//First option always with option ID is OC_COAP_OPTION_OBSERVE if it is available.