{"action":"opened","issue":{"url":"https://api.github.com/repos/englue/meteor-publish-composite/issues/46","labels_url":"https://api.github.com/repos/englue/meteor-publish-composite/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/englue/meteor-publish-composite/issues/46/comments","events_url":"https://api.github.com/repos/englue/meteor-publish-composite/issues/46/events","html_url":"https://github.com/englue/meteor-publish-composite/issues/46","id":93543744,"number":46,"title":"Error when logging out","user":{"login":"patrickml","id":7581369,"avatar_url":"https://avatars.githubusercontent.com/u/7581369?v=3","gravatar_id":"","url":"https://api.github.com/users/patrickml","html_url":"https://github.com/patrickml","followers_url":"https://api.github.com/users/patrickml/followers","following_url":"https://api.github.com/users/patrickml/following{/other_user}","gists_url":"https://api.github.com/users/patrickml/gists{/gist_id}","starred_url":"https://api.github.com/users/patrickml/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patrickml/subscriptions","organizations_url":"https://api.github.com/users/patrickml/orgs","repos_url":"https://api.github.com/users/patrickml/repos","events_url":"https://api.github.com/users/patrickml/events{/privacy}","received_events_url":"https://api.github.com/users/patrickml/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-07T14:26:25Z","updated_at":"2015-07-07T14:26:25Z","closed_at":null,"body":"for some reason I am receiving this error when logging out:\r\n\r\n~~~\r\nI20150707-10:23:10.082(-4)? Exception from sub projects id Hr8aJgXRcEsFnDSDQ TypeError: Cannot read property 'children' of undefined\r\nI20150707-10:23:10.082(-4)?     at new Publication (/Users/patricklewis/Documents/sites/meteor/bace/app/.meteor/local/build/programs/server/packages/reywood_publish-composite.js:61:35)\r\nI20150707-10:23:10.082(-4)?     at [object Object].<anonymous> (/Users/patricklewis/Documents/sites/meteor/bace/app/.meteor/local/build/programs/server/packages/reywood_publish-composite.js:423:19)\r\nI20150707-10:23:10.083(-4)?     at /Users/patricklewis/Documents/sites/meteor/bace/app/.meteor/local/build/programs/server/packages/matb33_collection-hooks.js:242:21\r\nI20150707-10:23:10.083(-4)?     at [object Object]._.extend.withValue (/Users/patricklewis/Documents/sites/meteor/bace/app/.meteor/local/build/programs/server/packages/meteor.js:989:17)\r\nI20150707-10:23:10.083(-4)?     at [object Object]._handler (/Users/patricklewis/Documents/sites/meteor/bace/app/.meteor/local/build/programs/server/packages/matb33_collection-hooks.js:241:28)\r\nI20150707-10:23:10.083(-4)?     at maybeAuditArgumentChecks (/Users/patricklewis/Documents/sites/meteor/bace/app/.meteor/local/build/programs/server/packages/ddp.js:2445:12)\r\nI20150707-10:23:10.083(-4)?     at [object Object]._.extend._runHandler (/Users/patricklewis/Documents/sites/meteor/bace/app/.meteor/local/build/programs/server/packages/ddp.js:1778:17)\r\nI20150707-10:23:10.083(-4)?     at [object Object].MeteorX.Subscription._runHandler (/Users/patricklewis/Documents/sites/meteor/bace/app/.meteor/local/build/programs/server/packages/meteorhacks_unblock.js:61:22)\r\nI20150707-10:23:10.084(-4)?     at [object Object].MeteorX.Session._startSubscription (/Users/patricklewis/Documents/sites/meteor/bace/app/.meteor/local/build/programs/server/packages/meteorhacks_unblock.js:49:7)\r\nI20150707-10:23:10.084(-4)?     at [object Object]._.extend.protocol_handlers.sub (/Users/patricklewis/Documents/sites/meteor/bace/app/.meteor/local/build/programs/server/packages/ddp.js:1410:12)\r\nI20150707-10:23:10.084(-4)?     at [object Object].MeteorX.Session.protocol_handlers.sub (/Users/patricklewis/Documents/sites/meteor/bace/app/.meteor/local/build/programs/server/packages/meteorhacks_unblock.js:23:15)\r\nI20150707-10:23:10.084(-4)?     at /Users/patricklewis/Documents/sites/meteor/bace/app/.meteor/local/build/programs/server/packages/ddp.js:1374:43\r\n~~~\r\n\r\n I have a feeling it has to do the fact that I have a check for if you are logged in in the publish function like so\r\n\r\n~~~\r\nMeteor.publishComposite('project', function (_id) {\r\n  if(!this.userId)\r\n    return;\r\n~~~\r\n\r\nAny ideas?"}}