Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullReferenceException when closing file tabs. #9

Closed
HTD opened this issue Feb 14, 2017 · 2 comments
Closed

NullReferenceException when closing file tabs. #9

HTD opened this issue Feb 14, 2017 · 2 comments
Assignees
Labels
Milestone

Comments

@HTD
Copy link

HTD commented Feb 14, 2017

Following error occurs randomly on closing tabs. I also experienced full Visual Studio crash after closing last tab.

System.NullReferenceException: Object reference not set to an instance of an object. at CodeNav.CodeNav..ctor(IWpfTextViewHost textViewHost, DTE dte) in C:\projects\codenav\CodeNav\CodeNav.cs:line 64 at CodeNav.CodeNavRightFactory.CreateMargin(IWpfTextViewHost wpfTextViewHost, IWpfTextViewMargin marginContainer) in C:\projects\codenav\CodeNav\CodeNavFactory.cs:line 78 at Microsoft.VisualStudio.Text.Utilities.ContainerMargin.<AddMargins>b__25_1(IWpfTextViewMarginProvider mp) at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.InstantiateExtension[TExtension,TMetadata,TExtensionInstance](Object errorSource, Lazy2 provider, Func2 getter)

@sboulema sboulema self-assigned this Feb 14, 2017
@sboulema sboulema added the bug label Feb 14, 2017
@sboulema sboulema added this to the 1.5 milestone Feb 14, 2017
sboulema added a commit that referenced this issue Feb 14, 2017
@sboulema
Copy link
Owner

Added more null checking in the next 1.5 release

@xperiandri
Copy link

Yep, now works well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants