Permalink
Browse files

CB-7119 cordova run --target xxx dies if blackberry10.json is empty

  • Loading branch information...
1 parent a6733a8 commit e79df14608dd87215c360e19ffa9a80eb14c3f19 @jsoref jsoref committed Jul 10, 2014
Showing with 6 additions and 1 deletion.
  1. +6 −1 bin/templates/project/cordova/lib/utils.js
View
7 bin/templates/project/cordova/lib/utils.js
@@ -300,7 +300,12 @@ _self = {
},
getProperties: function () {
- var props = require(_self.getPropertiesFilePath());
+ var props;
+ try {
+ props = require(_self.getPropertiesFilePath());
+ } catch (e) {
+ props = {};
+ }
if (!props.targets) {
props.targets = {};
}

0 comments on commit e79df14

Please sign in to comment.