Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit e79df14608dd87215c360e19ffa9a80eb14c3f19 1 parent a6733a8
Josh Soref jsoref authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 bin/templates/project/cordova/lib/utils.js
7 bin/templates/project/cordova/lib/utils.js
View
@@ -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 = {};
}
Please sign in to comment.
Something went wrong with that request. Please try again.