Commit 5e7cc214 authored by Jay Sharma's avatar Jay Sharma Committed by Uze Choi

Fix for the prevent issues for notification manager.

Change-Id: Iab02bb30bb8a4fde666974f98ff78741aa7d9720
Signed-off-by: default avatarJay Sharma <jay.sharma@samsung.com>
Signed-off-by: default avatarArya Kumar <arya.kumar@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1052Tested-by: default avatarjenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: default avatarUze Choi <uzchoi@samsung.com>
parent a975e4f6
......@@ -381,7 +381,11 @@ int main(int argc , char *argv[])
startPut(g_curResource);
break;
case DELETE:
try {
startDelete(g_curResource);
}catch(OCException e) {
std::cout<< "Caught OCException [Code: "<<e.code()<<" Reason: "<<e.reason()<<std::endl;
}
break;
default:
std::cout << "Invalid input, please try again" << std::endl;
......
......@@ -56,7 +56,7 @@ class TempHumidResource
public:
TempHumidResource() :
m_temp(0), m_humid(0), m_uri("/a/TempHumSensor")
m_temp(0), m_humid(0), m_uri("/a/TempHumSensor"), m_resourceHandle(NULL)
{
}
......
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