Skip to content

Commit

Permalink
Fix unsafe property access
Browse files Browse the repository at this point in the history
  • Loading branch information
Menardi authored and raphinesse committed Jun 20, 2018
1 parent 8fb49ec commit 1a8154c
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 @@ -106,7 +106,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 1a8154c

Please sign in to comment.