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 4, 2018
1 parent 9344b3e commit 475cca6
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 475cca6

Please sign in to comment.