{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/17368","repository_url":"https://api.github.com/repos/dotnet/roslyn","labels_url":"https://api.github.com/repos/dotnet/roslyn/issues/17368/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/17368/comments","events_url":"https://api.github.com/repos/dotnet/roslyn/issues/17368/events","html_url":"https://github.com/dotnet/roslyn/issues/17368","id":210146886,"number":17368,"title":"NullRef in ReplaceMethodWithPropertyCodeRefactoringProvider in VB","user":{"login":"dpoeschl","id":235241,"avatar_url":"https://avatars3.githubusercontent.com/u/235241?v=3","gravatar_id":"","url":"https://api.github.com/users/dpoeschl","html_url":"https://github.com/dpoeschl","followers_url":"https://api.github.com/users/dpoeschl/followers","following_url":"https://api.github.com/users/dpoeschl/following{/other_user}","gists_url":"https://api.github.com/users/dpoeschl/gists{/gist_id}","starred_url":"https://api.github.com/users/dpoeschl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpoeschl/subscriptions","organizations_url":"https://api.github.com/users/dpoeschl/orgs","repos_url":"https://api.github.com/users/dpoeschl/repos","events_url":"https://api.github.com/users/dpoeschl/events{/privacy}","received_events_url":"https://api.github.com/users/dpoeschl/received_events","type":"User","site_admin":false},"labels":[{"id":166377917,"url":"https://api.github.com/repos/dotnet/roslyn/labels/Area-IDE","name":"Area-IDE","color":"5319e7","default":false},{"id":165001069,"url":"https://api.github.com/repos/dotnet/roslyn/labels/Bug","name":"Bug","color":"fc2929","default":false}],"state":"closed","locked":false,"assignee":{"login":"CyrusNajmabadi","id":4564579,"avatar_url":"https://avatars0.githubusercontent.com/u/4564579?v=3","gravatar_id":"","url":"https://api.github.com/users/CyrusNajmabadi","html_url":"https://github.com/CyrusNajmabadi","followers_url":"https://api.github.com/users/CyrusNajmabadi/followers","following_url":"https://api.github.com/users/CyrusNajmabadi/following{/other_user}","gists_url":"https://api.github.com/users/CyrusNajmabadi/gists{/gist_id}","starred_url":"https://api.github.com/users/CyrusNajmabadi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CyrusNajmabadi/subscriptions","organizations_url":"https://api.github.com/users/CyrusNajmabadi/orgs","repos_url":"https://api.github.com/users/CyrusNajmabadi/repos","events_url":"https://api.github.com/users/CyrusNajmabadi/events{/privacy}","received_events_url":"https://api.github.com/users/CyrusNajmabadi/received_events","type":"User","site_admin":false},"assignees":[{"login":"CyrusNajmabadi","id":4564579,"avatar_url":"https://avatars0.githubusercontent.com/u/4564579?v=3","gravatar_id":"","url":"https://api.github.com/users/CyrusNajmabadi","html_url":"https://github.com/CyrusNajmabadi","followers_url":"https://api.github.com/users/CyrusNajmabadi/followers","following_url":"https://api.github.com/users/CyrusNajmabadi/following{/other_user}","gists_url":"https://api.github.com/users/CyrusNajmabadi/gists{/gist_id}","starred_url":"https://api.github.com/users/CyrusNajmabadi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CyrusNajmabadi/subscriptions","organizations_url":"https://api.github.com/users/CyrusNajmabadi/orgs","repos_url":"https://api.github.com/users/CyrusNajmabadi/repos","events_url":"https://api.github.com/users/CyrusNajmabadi/events{/privacy}","received_events_url":"https://api.github.com/users/CyrusNajmabadi/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/dotnet/roslyn/milestones/22","html_url":"https://github.com/dotnet/roslyn/milestone/22","labels_url":"https://api.github.com/repos/dotnet/roslyn/milestones/22/labels","id":1886693,"number":22,"title":"15.1","description":"","creator":{"login":"ManishJayaswal","id":9527491,"avatar_url":"https://avatars1.githubusercontent.com/u/9527491?v=3","gravatar_id":"","url":"https://api.github.com/users/ManishJayaswal","html_url":"https://github.com/ManishJayaswal","followers_url":"https://api.github.com/users/ManishJayaswal/followers","following_url":"https://api.github.com/users/ManishJayaswal/following{/other_user}","gists_url":"https://api.github.com/users/ManishJayaswal/gists{/gist_id}","starred_url":"https://api.github.com/users/ManishJayaswal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ManishJayaswal/subscriptions","organizations_url":"https://api.github.com/users/ManishJayaswal/orgs","repos_url":"https://api.github.com/users/ManishJayaswal/repos","events_url":"https://api.github.com/users/ManishJayaswal/events{/privacy}","received_events_url":"https://api.github.com/users/ManishJayaswal/received_events","type":"User","site_admin":false},"open_issues":19,"closed_issues":388,"state":"open","created_at":"2016-07-15T21:14:40Z","updated_at":"2017-06-16T20:15:34Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2017-02-24T20:13:26Z","updated_at":"2017-06-26T14:35:50Z","closed_at":"2017-03-15T16:34:44Z","body":"No clue how to repro, but I got the failure info bar on the following code:\r\n\r\n```VB\r\nClass C\r\n    Sub Method(a As Integer, b As Integer)\r\n    End Sub\r\nEnd Class\r\n```\r\n\r\n```\r\nSystem.NullReferenceException : Object reference not set to an instance of an object.\r\n   at Microsoft.CodeAnalysis.VisualBasic.CodeRefactorings.ReplaceMethodWithProperty.VisualBasicReplaceMethodWithPropertyService.GetMethodDeclaration(SyntaxToken token)\r\n   at async Microsoft.CodeAnalysis.ReplaceMethodWithProperty.ReplaceMethodWithPropertyCodeRefactoringProvider.ComputeRefactoringsAsync(<Unknown Parameters>)\r\n   at async Microsoft.CodeAnalysis.CodeRefactorings.CodeRefactoringService.GetRefactoringFromProviderAsync(<Unknown Parameters>)\r\n   at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)\r\n```\r\n\r\nSee also: https://developercommunity.visualstudio.com/content/problem/25196/replacemethodwithpropertycoderefactoringprovider-e.html"},"comment":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/comments/311078053","html_url":"https://github.com/dotnet/roslyn/issues/17368#issuecomment-311078053","issue_url":"https://api.github.com/repos/dotnet/roslyn/issues/17368","id":311078053,"user":{"login":"sophistson","id":16742560,"avatar_url":"https://avatars1.githubusercontent.com/u/16742560?v=3","gravatar_id":"","url":"https://api.github.com/users/sophistson","html_url":"https://github.com/sophistson","followers_url":"https://api.github.com/users/sophistson/followers","following_url":"https://api.github.com/users/sophistson/following{/other_user}","gists_url":"https://api.github.com/users/sophistson/gists{/gist_id}","starred_url":"https://api.github.com/users/sophistson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sophistson/subscriptions","organizations_url":"https://api.github.com/users/sophistson/orgs","repos_url":"https://api.github.com/users/sophistson/repos","events_url":"https://api.github.com/users/sophistson/events{/privacy}","received_events_url":"https://api.github.com/users/sophistson/received_events","type":"User","site_admin":false},"created_at":"2017-06-26T14:35:50Z","updated_at":"2017-06-26T14:35:50Z","body":"Be aware of : public function Read_xxx**# ()** as integer"}}
{"actor":{"display_login":"sophistson"}}