diff --git a/www/common/proxy-manager.js b/www/common/proxy-manager.js index 926335eb9..b4c985dc9 100644 --- a/www/common/proxy-manager.js +++ b/www/common/proxy-manager.js @@ -1263,8 +1263,12 @@ define([ } if (type === "pin") { var sfChannels = Object.keys(Env.folders).map(function (fId) { - return Env.user.proxy[UserObject.SHARED_FOLDERS][fId].channel; - }); + try { + return Env.user.proxy[UserObject.SHARED_FOLDERS][fId].channel; + } catch (err) { + console.error(err); + } + }).filter(Boolean); Array.prototype.push.apply(result, sfChannels); }