Change-Id: Iab88c037ec30ad961bada01579daf0c4d470596d
Signed-off-by: abitha.s <abitha.s@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/16701
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
NSTopicsList *NSProvider::getTopicList() const\r
{\r
NS_LOG(DEBUG, "getTopicList - IN");\r
- return m_topicList;\r
+ NSTopicsList * topicList = new NSTopicsList();\r
+ for (auto it : m_topicList->getTopicsList())\r
+ {\r
+ topicList->addTopic(it->getTopicName(), it->getState());\r
+ }\r
+ return topicList;\r
}\r
\r
NSResult NSProvider::updateTopicList(NSTopicsList *topicList)\r