Do not crash if app.volumes does not exist

This commit is contained in:
Johannes Zellner
2020-10-29 12:09:15 +01:00
parent 88ed545830
commit f8d6fd80d5

View File

@@ -190,7 +190,7 @@ function getBinds(app, callback) {
assert.strictEqual(typeof app, 'object');
assert.strictEqual(typeof callback, 'function');
if (app.volumes.length === 0) return callback(null);
if (!app.volumes || app.volumes.length === 0) return callback(null);
let binds = [];