{"action":"created","issue":{"url":"https://api.github.com/repos/vuejs/vue-router/issues/459","repository_url":"https://api.github.com/repos/vuejs/vue-router","labels_url":"https://api.github.com/repos/vuejs/vue-router/issues/459/labels{/name}","comments_url":"https://api.github.com/repos/vuejs/vue-router/issues/459/comments","events_url":"https://api.github.com/repos/vuejs/vue-router/issues/459/events","html_url":"https://github.com/vuejs/vue-router/issues/459","id":147888128,"number":459,"title":"transition.redirect: TypeError: Cannot read property 'filter' of null ","user":{"login":"andre-dw","id":7560637,"avatar_url":"https://avatars.githubusercontent.com/u/7560637?v=3","gravatar_id":"","url":"https://api.github.com/users/andre-dw","html_url":"https://github.com/andre-dw","followers_url":"https://api.github.com/users/andre-dw/followers","following_url":"https://api.github.com/users/andre-dw/following{/other_user}","gists_url":"https://api.github.com/users/andre-dw/gists{/gist_id}","starred_url":"https://api.github.com/users/andre-dw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andre-dw/subscriptions","organizations_url":"https://api.github.com/users/andre-dw/orgs","repos_url":"https://api.github.com/users/andre-dw/repos","events_url":"https://api.github.com/users/andre-dw/events{/privacy}","received_events_url":"https://api.github.com/users/andre-dw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-12T22:06:44Z","updated_at":"2016-04-18T03:19:26Z","closed_at":null,"body":"Get an \"TypeError: Cannot read property 'filter' of null\" error while doing:\r\n ```\r\nroute: {\r\n        activate: function (transition) {\r\n            var that = this,\r\n                token = localStorage.getItem('jwt-token');\r\n            if (token || token !== null) {\r\n                transition.redirect({\r\n                    name: 'home',\r\n                });\r\n            } else {\r\n                transition.next();\r\n            }\r\n\r\n        },\r\n }\r\n```\r\nThe home component will show in the Vue Devtools after this but in the dom there is still the previous component. \r\n"},"comment":{"url":"https://api.github.com/repos/vuejs/vue-router/issues/comments/211170440","html_url":"https://github.com/vuejs/vue-router/issues/459#issuecomment-211170440","issue_url":"https://api.github.com/repos/vuejs/vue-router/issues/459","id":211170440,"user":{"login":"hq5544","id":10363393,"avatar_url":"https://avatars.githubusercontent.com/u/10363393?v=3","gravatar_id":"","url":"https://api.github.com/users/hq5544","html_url":"https://github.com/hq5544","followers_url":"https://api.github.com/users/hq5544/followers","following_url":"https://api.github.com/users/hq5544/following{/other_user}","gists_url":"https://api.github.com/users/hq5544/gists{/gist_id}","starred_url":"https://api.github.com/users/hq5544/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hq5544/subscriptions","organizations_url":"https://api.github.com/users/hq5544/orgs","repos_url":"https://api.github.com/users/hq5544/repos","events_url":"https://api.github.com/users/hq5544/events{/privacy}","received_events_url":"https://api.github.com/users/hq5544/received_events","type":"User","site_admin":false},"created_at":"2016-04-18T03:19:26Z","updated_at":"2016-04-18T03:19:26Z","body":"I also met the same issue. \r\n`data` says the `transition` is undefined. "}}