{"action":"opened","issue":{"url":"https://api.github.com/repos/Gillespie59/eslint-plugin-angular/issues/319","labels_url":"https://api.github.com/repos/Gillespie59/eslint-plugin-angular/issues/319/labels{/name}","comments_url":"https://api.github.com/repos/Gillespie59/eslint-plugin-angular/issues/319/comments","events_url":"https://api.github.com/repos/Gillespie59/eslint-plugin-angular/issues/319/events","html_url":"https://github.com/Gillespie59/eslint-plugin-angular/issues/319","id":121224754,"number":319,"title":"controller-as-route error on empty state call","user":{"login":"remcohaszing","id":779047,"avatar_url":"https://avatars.githubusercontent.com/u/779047?v=3","gravatar_id":"","url":"https://api.github.com/users/remcohaszing","html_url":"https://github.com/remcohaszing","followers_url":"https://api.github.com/users/remcohaszing/followers","following_url":"https://api.github.com/users/remcohaszing/following{/other_user}","gists_url":"https://api.github.com/users/remcohaszing/gists{/gist_id}","starred_url":"https://api.github.com/users/remcohaszing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remcohaszing/subscriptions","organizations_url":"https://api.github.com/users/remcohaszing/orgs","repos_url":"https://api.github.com/users/remcohaszing/repos","events_url":"https://api.github.com/users/remcohaszing/events{/privacy}","received_events_url":"https://api.github.com/users/remcohaszing/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-09T12:18:33Z","updated_at":"2015-12-09T12:18:33Z","closed_at":null,"body":"The following code triggers an unhandled error in the `controller-as-route` rule:\r\n```js\r\n$stateProvider.state();\r\n```\r\n\r\n```\r\nTypeError: Cannot read property 'properties' of undefined\r\n    at EventEmitter.CallExpression (/home/remco/d-centralize/appsemble/node_modules/eslint-plugin-angular/rules/controller-as-route.js:48:32)\r\n    at emitOne (events.js:82:20)\r\n    at EventEmitter.emit (events.js:169:7)\r\n    at NodeEventGenerator.enterNode (/home/remco/d-centralize/appsemble/node_modules/eslint/lib/util/node-event-generator.js:42:22)\r\n    at CommentEventGenerator.enterNode (/home/remco/d-centralize/appsemble/node_modules/eslint/lib/util/comment-event-generator.js:98:23)\r\n    at Controller.controller.traverse.enter (/home/remco/d-centralize/appsemble/node_modules/eslint/lib/eslint.js:767:36)\r\n    at Controller.__execute (/home/remco/d-centralize/appsemble/node_modules/estraverse/estraverse.js:397:31)\r\n    at Controller.traverse (/home/remco/d-centralize/appsemble/node_modules/estraverse/estraverse.js:495:28)\r\n    at EventEmitter.module.exports.api.verify (/home/remco/d-centralize/appsemble/node_modules/eslint/lib/eslint.js:764:24)\r\n    at processText (/home/remco/d-centralize/appsemble/node_modules/eslint/lib/cli-engine.js:230:27)\r\n```"}}