diff --git a/src/apps.js b/src/apps.js index 3d61ac2bd..5b769dd06 100644 --- a/src/apps.js +++ b/src/apps.js @@ -356,7 +356,7 @@ function install(appId, appStoreId, manifest, location, portBindings, accessRest error = validateAccessRestriction(accessRestriction); if (error) return callback(new AppsError(AppsError.BAD_FIELD, error.message)); - var memoryLimit = manifest.memoryLimit <= 268435456 ? 268435456 : manifest.memoryLimit; // 256mb + var memoryLimit = (!manifest.memoryLimit || manifest.memoryLimit <= 268435456) ? 268435456 : manifest.memoryLimit; // 256mb // singleUser mode requires accessRestriction to contain exactly one user if (manifest.singleUser && accessRestriction === null) return callback(new AppsError(AppsError.USER_REQUIRED));