Fix exception when attempting to load a package with no engines in package.json

This commit is contained in:
Ben Gotow 2018-10-09 17:18:08 -07:00
parent 69cbfd3fc2
commit 6bd60ae748

View file

@ -168,7 +168,7 @@ export default class PackageManager {
);
}
if (!json.engines.mailspring) {
if (!json.engines || !json.engines.mailspring) {
return callback(
new Error(
localized(