struct quota_root *root;
bool add;
+ if (QUOTA_USER_CONTEXT(list->ns->user) == NULL)
+ return;
+
/* see if we have a quota explicitly defined for this namespace */
quota = quota_get_mail_user_quota(list->ns->user);
root = quota_find_root_for_ns(quota, list->ns);
struct quota_root *const *roots;
unsigned int i, count;
+ if (QUOTA_USER_CONTEXT(namespaces->user) == NULL)
+ return;
+
quota = quota_get_mail_user_quota(namespaces->user);
roots = array_get("a->roots, &count);
for (i = 0; i < count; i++)