From e98b4176b41b63b3f07592609a84d3b821e350df Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 28 Feb 2019 17:09:53 +0100 Subject: [PATCH] Fix error at registration --- www/common/migrate-user-object.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/common/migrate-user-object.js b/www/common/migrate-user-object.js index faef141a0..54c1c6111 100644 --- a/www/common/migrate-user-object.js +++ b/www/common/migrate-user-object.js @@ -179,7 +179,7 @@ define([ }).nThen(function () { // Migration 8: remove duplicate entries in proxy.FS_hashes (list of migrated anon drives) var fixDuplicate = function () { - userObject.FS_hashes = Util.deduplicateString(userObject.FS_hashes); + userObject.FS_hashes = Util.deduplicateString(userObject.FS_hashes || []); }; if (version < 8) { fixDuplicate();