diff --git a/www/common/outer/async-store.js b/www/common/outer/async-store.js index df05d8a3e..e849ce20d 100644 --- a/www/common/outer/async-store.js +++ b/www/common/outer/async-store.js @@ -256,7 +256,7 @@ define([ Store.getPinnedUsage = function (clientId, data, cb) { var s = getStore(data && data.teamId); - if (!s.rpc) { return void cb({error: 'RPC_NOT_READY'}); } + if (!s || !s.rpc) { return void cb({error: 'RPC_NOT_READY'}); } s.rpc.getFileListSize(function (err, bytes) { if (!s.id && typeof(bytes) === 'number') {