From: Priya Kohli Date: Wed, 16 Oct 2019 07:14:23 +0000 (+0530) Subject: [TBT][Push Service][TFDF-5574, Push app was crashing on select] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d75422a95d0a8491f21fb26fdb3a1f7e13b071a8;p=test%2Ftct%2Fnative%2Fbehavior.git [TBT][Push Service][TFDF-5574, Push app was crashing on select] Change-Id: I4e0bda69650093294d43768e1b99302f5a2359ca Signed-off-by: Priya Kohli --- diff --git a/release/binary-armv7l/org.tizen.tbtcoreapp-1.0.0-arm.tpk b/release/binary-armv7l/org.tizen.tbtcoreapp-1.0.0-arm.tpk index 990cdad..1b039f5 100644 Binary files a/release/binary-armv7l/org.tizen.tbtcoreapp-1.0.0-arm.tpk and b/release/binary-armv7l/org.tizen.tbtcoreapp-1.0.0-arm.tpk differ diff --git a/release/binary-x86/org.tizen.tbtcoreapp-1.0.0-x86.tpk b/release/binary-x86/org.tizen.tbtcoreapp-1.0.0-x86.tpk index e6fe775..c1e972b 100644 Binary files a/release/binary-x86/org.tizen.tbtcoreapp-1.0.0-x86.tpk and b/release/binary-x86/org.tizen.tbtcoreapp-1.0.0-x86.tpk differ diff --git a/tbtcoreapp/src/view/tbt-push-view.c b/tbtcoreapp/src/view/tbt-push-view.c index e91d9d1..390e83e 100644 --- a/tbtcoreapp/src/view/tbt-push-view.c +++ b/tbtcoreapp/src/view/tbt-push-view.c @@ -334,6 +334,9 @@ static char* get_xml_element_value (xmlDocPtr doc, xmlNodePtr cur, const char* t while (cur != NULL) { if ((!xmlStrcmp(cur->name, (const xmlChar *)tag))) { key = xmlNodeListGetString(doc, cur->xmlChildrenNode, 1); + if(!key){ + return NULL; + } str = strdup((char*)key); xmlFree(key); }