Fix addon crash
getAddonConfigByName returns null now when not found
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user