NullReferenceException when editing
Posted: Tue Nov 19, 2019 8:18 am
Hi,
When editing XSharp code in the VS 2019 periodically (not often) an exception occurs (displayed as a line in the top side of the VS 2019 main window).
From log:
System.NullReferenceException: Object reference not set to an instance of an object. In XSharp.Project.CommandFilter.cursorIsInStringorComment(SnapshotPoint caret) in C:XSharpDevPublicVisualStudioProjectPackageEditorsCommandFilter.cs:line 969 in XSharp.Project.CommandFilter.completeCurrentToken(UInt32 nCmdID, Char ch) in C:XSharpDevPublicVisualStudioProjectPackageEditorsCommandFilter.cs:line 747 in XSharp.Project.CommandFilter.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) in C:XSharpDevPublicVisualStudioProjectPackageEditorsCommandFilter.cs:line 600 in Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)…
Best regards,
Leonid
When editing XSharp code in the VS 2019 periodically (not often) an exception occurs (displayed as a line in the top side of the VS 2019 main window).
From log:
System.NullReferenceException: Object reference not set to an instance of an object. In XSharp.Project.CommandFilter.cursorIsInStringorComment(SnapshotPoint caret) in C:XSharpDevPublicVisualStudioProjectPackageEditorsCommandFilter.cs:line 969 in XSharp.Project.CommandFilter.completeCurrentToken(UInt32 nCmdID, Char ch) in C:XSharpDevPublicVisualStudioProjectPackageEditorsCommandFilter.cs:line 747 in XSharp.Project.CommandFilter.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) in C:XSharpDevPublicVisualStudioProjectPackageEditorsCommandFilter.cs:line 600 in Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)…
Best regards,
Leonid