Skip to content

Commit

Permalink
Fix unsafe property access in run.js (apache#445)
Browse files Browse the repository at this point in the history
  • Loading branch information
Menardi authored and Christopher J. Brody committed Jul 10, 2018
1 parent 09d1a2a commit f909f35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/templates/cordova/lib/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ module.exports.run = function (runOptions) {
// format than emulator.install expects.
// TODO: Update emulator/device.install to handle this change
return build.run.call(self, runOptions, resolvedTarget).then(function (buildResults) {
if (resolvedTarget.isEmulator) {
if (resolvedTarget && resolvedTarget.isEmulator) {
return emulator.wait_for_boot(resolvedTarget.target).then(function () {
return emulator.install(resolvedTarget, buildResults);
});
Expand Down

0 comments on commit f909f35

Please sign in to comment.