Fix for IOT-613 issue. Problem: When SIGINT signal is raised, occlient called OCStop(). OCStop() function called deleteResource() to delete the resources. deleteResource() takes OCResource* as first argument and dont check the NULL value.
Fix for IOT-613 issue.
Problem: When SIGINT signal is raised, occlient called OCStop(). OCStop() function called deleteResource() to delete the resources. deleteResource() takes OCResource* as first argument and dont check the NULL value.

Fix: Null check for argument in deleteResource().

Change-Id: I1f71bc5f90ef7199bf33da7157c8e52d2ffe94dd
Signed-off-by: sonu1.yadav <28669623c652693720247d7940313efce9649bdd@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1687
Tested-by: jenkins-iotivity <09cb29e8a2b473a2c978382eec13ee06fa017bda@opendaylight.org>
Reviewed-by: Omkar Hegde <2f73167d782cd137889359cdea8329848f05c29a@intel.com>
Reviewed-by: Erich Keane <ec9f61fe526c14bb62c55d7c978f025ee6b3583d@intel.com>

santais/iotivity,iotivity/iotivity,tienfuc/iotivity-democlient-snap,santais/iotivity_1.1.0,santais/iotivity,santais/iotivity_1.1.0,tienfuc/iotivity-democlient-snap,WojciechLuczkow/iotivity,iotivity/iotivity,santais/iotivity,rzr/iotivity,santais/iotivity_1.1,santais/iotivity_1.1,tienfuc/iotivity-democlient-snap,WojciechLuczkow/iotivity,tienfuc/iotivity-democlient-snap,santais/iotivity,WojciechLuczkow/iotivity,WojciechLuczkow/iotivity,WojciechLuczkow/iotivity,WojciechLuczkow/iotivity,tienfuc/iotivity-democlient-snap,rzr/iotivity,tienfuc/iotivity-democlient-snap,rzr/iotivity,rzr/iotivity,santais/iotivity_1.1,rzr/iotivity,santais/iotivity,santais/iotivity_1.1,tienfuc/iotivity-democlient-snap,santais/iotivity_1.1,santais/iotivity_1.1,santais/iotivity_1.1.0,santais/iotivity_1.1,santais/iotivity_1.1.0,santais/iotivity_1.1,WojciechLuczkow/iotivity,tienfuc/iotivity-democlient-snap,iotivity/iotivity,rzr/iotivity,rzr/iotivity,iotivity/iotivity,iotivity/iotivity,santais/iotivity_1.1.0,WojciechLuczkow/iotivity,tienfuc/iotivity-democlient-snap,tienfuc/iotivity-democlient-snap,santais/iotivity_1.1.0,iotivity/iotivity,iotivity/iotivity,santais/iotivity,iotivity/iotivity,santais/iotivity,santais/iotivity_1.1.0