Fix addon crash

getAddonConfigByName returns null now when not found
This commit is contained in:
Girish Ramakrishnan
2021-08-22 15:35:46 -07:00
parent 95af5ef138
commit 62eb4ab90e
2 changed files with 23 additions and 18 deletions

View File

@@ -331,7 +331,7 @@ function createSubcontainer(app, name, cmd, options, callback) {
getMounts(app, async function (error, mounts) {
if (error) return callback(error);
const [getEnvError, addonEnv] = await services.getEnvironment(app);
const [getEnvError, addonEnv] = await safe(services.getEnvironment(app));
if (getEnvError) return callback(getEnvError);
let containerOptions = {