From 3fd257d14366d708c1aef65b7073397da551d9ad Mon Sep 17 00:00:00 2001 From: Mark Koudritsky Date: Fri, 9 May 2014 15:42:10 -0400 Subject: [PATCH] Use null as plugin name for plugins with no Apparently some plugins don't have a tag. Check for this and use set the name to null for them in PluginInfo. --- cordova-lib/src/PluginInfo.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cordova-lib/src/PluginInfo.js b/cordova-lib/src/PluginInfo.js index 4e7ce3515..c60430fc2 100644 --- a/cordova-lib/src/PluginInfo.js +++ b/cordova-lib/src/PluginInfo.js @@ -51,7 +51,9 @@ function PluginInfo(dirname) { self.id = et.getroot().attrib.id; self.version = et.getroot().attrib.version; - self.name = et.find('name').text; + var nameTag = et.find('name'); + self.name = nameTag ? nameTag.text : null; + self.deps = {}; et.findall('dependency').forEach(function (d) { self.deps[d.attrib.id] = _.clone(d.attrib);