Prevent accessing oldConfig if it does not exist

This commit is contained in:
Johannes Zellner
2015-08-12 21:17:52 +02:00
parent ba7989b57b
commit d12f260d12
+1 -1
View File
@@ -673,7 +673,7 @@ function restore(app, callback) {
// note that configure is called after an infra update as well
function configure(app, callback) {
var locationChanged = app.oldConfig.location !== app.location;
var locationChanged = app.oldConfig ? app.oldConfig.location !== app.location : true;
async.series([
updateApp.bind(null, app, { installationProgress: '10, Cleaning up old install' }),