If it comes with NULL, do not try to parse it.
While uninstalling packages, the pkgmgr doesn't give the docPtr to the plugin.
So there is no way to parse the xml document.
Ignore it.
Change-Id: Ica97ce8335f9eb8ba557821e2c87560d9878a233
}
}
-
static int db_remove_record(const char *pkgid, const char *appid, const char *key, const char *data)
{
static const char *dml = "DELETE FROM shortcut_service WHERE appid = ? AND extra_key = ? AND extra_data = ? AND pkgid = ?";
xmlNodePtr root;
int id;
+ if (!docPtr) {
+ DbgPrint("Package manager doesn't support the docPtr (%s)\n", _appid);
+ return 0;
+ }
+
root = xmlDocGetRootElement(docPtr);
if (!root) {
ErrPrint("Invalid node ptr\n");