{"action":"opened","issue":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/18666","repository_url":"https://api.github.com/repos/dotnet/roslyn","labels_url":"https://api.github.com/repos/dotnet/roslyn/issues/18666/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/18666/comments","events_url":"https://api.github.com/repos/dotnet/roslyn/issues/18666/events","html_url":"https://github.com/dotnet/roslyn/issues/18666","id":221478117,"number":18666,"title":"Null Reference when attempting to navigate to a constructor from Find All References","user":{"login":"davkean","id":1103906,"avatar_url":"https://avatars2.githubusercontent.com/u/1103906?v=3","gravatar_id":"","url":"https://api.github.com/users/davkean","html_url":"https://github.com/davkean","followers_url":"https://api.github.com/users/davkean/followers","following_url":"https://api.github.com/users/davkean/following{/other_user}","gists_url":"https://api.github.com/users/davkean/gists{/gist_id}","starred_url":"https://api.github.com/users/davkean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davkean/subscriptions","organizations_url":"https://api.github.com/users/davkean/orgs","repos_url":"https://api.github.com/users/davkean/repos","events_url":"https://api.github.com/users/davkean/events{/privacy}","received_events_url":"https://api.github.com/users/davkean/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-04-13T07:13:44Z","updated_at":"2017-04-13T07:13:44Z","closed_at":null,"body":"I double-clicked the highlighted constructor in Find All References, and VS opened a dialog and said that an extension failed and to look at ActivityLog. \r\n\r\n![image](https://cloud.githubusercontent.com/assets/1103906/24994012/542a5016-206c-11e7-842d-5adeb4f01558.png)\r\n\r\nLooking at the log I see:\r\n\r\n```\r\nSystem.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.VisualStudio.LanguageServices.Implementation.ProjectSystem.VisualStudioWorkspaceImpl.GetDocumentIdInCurrentContext(DocumentId documentId) at Microsoft.VisualStudio.LanguageServices.Implementation.VisualStudioDocumentNavigationService.TryNavigateToSpan(Workspace workspace, DocumentId documentId, TextSpan textSpan, OptionSet options) at Microsoft.CodeAnalysis.DocumentSpanExtensions.TryNavigateTo(DocumentSpan documentSpan) at Microsoft.CodeAnalysis.FindUsages.DefinitionItem.DocumentLocationDefinitionItem.TryNavigateTo() at Microsoft.VisualStudio.LanguageServices.FindUsages.StreamingFindUsagesPresenter.RoslynDefinitionBucket.TryNavigateTo() at Microsoft.VisualStudio.LanguageServices.FindUsages.FindUsagesTableControlEventProcessorProvider.TableControlEventProcessor.PreprocessNavigate(ITableEntryHandle entry, TableEntryNavigateEventArgs e) at Microsoft.VisualStudio.Shell.TableControl.Implementation.TableControlEventManager.<>c__DisplayClass40_0.<OnEntryElementNavigate>b__2(ITableControlEventProcessor p, ITableEntryHandle entry) at Microsoft.VisualStudio.Shell.TableControl.Implementation.TableControlEventManager.<>c__DisplayClass59_1`1.<EventProcessorHandler>b__0() at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.CallExtensionPoint(Object errorSource, Action call)\r\n```\r\n\r\nDouble-clicking again does not provide an error. In between Finding the results, and double-clicking the constructor I had changed code a lot by reverting a bunch of changes, including to the file in question.\r\n\r\nCannot repro this again,"}}
{"actor":{"display_login":"davkean"}}