{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/34670","repository_url":"https://api.github.com/repos/dart-lang/sdk","labels_url":"https://api.github.com/repos/dart-lang/sdk/issues/34670/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/sdk/issues/34670/comments","events_url":"https://api.github.com/repos/dart-lang/sdk/issues/34670/events","html_url":"https://github.com/dart-lang/sdk/issues/34670","id":366751629,"node_id":"MDU6SXNzdWUzNjY3NTE2Mjk=","number":34670,"title":"Add analyzer info when using uninitialized variables","user":{"login":"Rodsevich","id":1907844,"node_id":"MDQ6VXNlcjE5MDc4NDQ=","avatar_url":"https://avatars1.githubusercontent.com/u/1907844?v=4","gravatar_id":"","url":"https://api.github.com/users/Rodsevich","html_url":"https://github.com/Rodsevich","followers_url":"https://api.github.com/users/Rodsevich/followers","following_url":"https://api.github.com/users/Rodsevich/following{/other_user}","gists_url":"https://api.github.com/users/Rodsevich/gists{/gist_id}","starred_url":"https://api.github.com/users/Rodsevich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rodsevich/subscriptions","organizations_url":"https://api.github.com/users/Rodsevich/orgs","repos_url":"https://api.github.com/users/Rodsevich/repos","events_url":"https://api.github.com/users/Rodsevich/events{/privacy}","received_events_url":"https://api.github.com/users/Rodsevich/received_events","type":"User","site_admin":false},"labels":[{"id":219928307,"node_id":"MDU6TGFiZWwyMTk5MjgzMDc=","url":"https://api.github.com/repos/dart-lang/sdk/labels/analyzer-linter","name":"analyzer-linter","color":"d4c5f9","default":false},{"id":219928186,"node_id":"MDU6TGFiZWwyMTk5MjgxODY=","url":"https://api.github.com/repos/dart-lang/sdk/labels/area-analyzer","name":"area-analyzer","color":"c7def8","default":false},{"id":334529267,"node_id":"MDU6TGFiZWwzMzQ1MjkyNjc=","url":"https://api.github.com/repos/dart-lang/sdk/labels/type-enhancement","name":"type-enhancement","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-10-04T11:48:07Z","updated_at":"2018-10-05T20:09:08Z","closed_at":null,"author_association":"NONE","body":"When you are coding, suppose, this:\r\n```Dart\r\nfunction() {\r\n  String str;\r\n  List list;\r\n  print(str.substring(2) + list.first);\r\n}\r\n```\r\nThere's no warning nor anything after you execute the code (at least in VM) and you get the error of calling substring on null (being that list.first will also raise an exception, making you waste more time fixing the program)\r\nI think there should be at least an info that you are working with null variables when the analyzer doesn't detect  some assignment that removes the null state from variables."},"comment":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/comments/427484641","html_url":"https://github.com/dart-lang/sdk/issues/34670#issuecomment-427484641","issue_url":"https://api.github.com/repos/dart-lang/sdk/issues/34670","id":427484641,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzQ4NDY0MQ==","user":{"login":"move[bot]","id":33596368,"node_id":"MDM6Qm90MzM1OTYzNjg=","avatar_url":"https://avatars1.githubusercontent.com/in/6673?v=4","gravatar_id":"","url":"https://api.github.com/users/move%5Bbot%5D","html_url":"https://github.com/apps/move","followers_url":"https://api.github.com/users/move%5Bbot%5D/followers","following_url":"https://api.github.com/users/move%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/move%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/move%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/move%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/move%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/move%5Bbot%5D/repos","events_url":"https://api.github.com/users/move%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/move%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2018-10-05T20:09:08Z","updated_at":"2018-10-05T20:09:08Z","author_association":"NONE","body":"This issue was moved by [bwilkerson](https://github.com/bwilkerson) to [dart-lang/linter#1201](https://github.com/dart-lang/linter/issues/1201)."}}
{"actor":{"display_login":"move"}}