Handle the case when pluginInfo tag is missing in the Configuration
file.
Change-Id: I0bc8e14a875a71bd2254d5ef917b3dc7652339f8
Signed-off-by: Ankur Bansal <ankur.b1@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1538
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Younghyun Joo <yh_.joo@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
PMRESULT Config::getXmlData(xml_node<> *pluginInfo, std::string key)
{
+ if(pluginInfo == NULL)
+ {
+ return PM_S_FALSE;
+ }
+
std::string value = "";
xml_attribute<> *iAttr = pluginInfo->first_attribute(key.c_str());
if (iAttr)