You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2015/04/30 03:21:19 UTC

cordova-lib git commit: Fix NPE in PluginInfo.getKeywordsAndPlatforms when no keywords exist

Repository: cordova-lib
Updated Branches:
  refs/heads/master dbf54c3c8 -> c8f20a7c2


Fix NPE in PluginInfo.getKeywordsAndPlatforms when no keywords exist


Project: http://git-wip-us.apache.org/repos/asf/cordova-lib/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-lib/commit/c8f20a7c
Tree: http://git-wip-us.apache.org/repos/asf/cordova-lib/tree/c8f20a7c
Diff: http://git-wip-us.apache.org/repos/asf/cordova-lib/diff/c8f20a7c

Branch: refs/heads/master
Commit: c8f20a7c2c4d35a329794d042140fa7feb384fcb
Parents: dbf54c3
Author: Andrew Grieve <ag...@chromium.org>
Authored: Wed Apr 29 21:20:30 2015 -0400
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Wed Apr 29 21:20:30 2015 -0400

----------------------------------------------------------------------
 cordova-lib/src/PluginInfo.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/c8f20a7c/cordova-lib/src/PluginInfo.js
----------------------------------------------------------------------
diff --git a/cordova-lib/src/PluginInfo.js b/cordova-lib/src/PluginInfo.js
index fe94682..a6ea7ce 100644
--- a/cordova-lib/src/PluginInfo.js
+++ b/cordova-lib/src/PluginInfo.js
@@ -334,7 +334,8 @@ function PluginInfo(dirname) {
         self.keywords = self.keywords.split(',').map( function(s) { return s.trim(); } );
     }
     self.getKeywordsAndPlatforms = function () {
-        return self.keywords.concat('ecosystem:cordova').concat(addCordova(self.getPlatformsArray()));
+        var ret = self.keywords || [];
+        return ret.concat('ecosystem:cordova').concat(addCordova(self.getPlatformsArray()));
     };
 }  // End of PluginInfo constructor.
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org