xsharp.eu • NullReferenceException when editing
Page 1 of 1

NullReferenceException when editing

Posted: Tue Nov 19, 2019 8:18 am
by leon-ts
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

NullReferenceException when editing

Posted: Tue Nov 19, 2019 9:54 am
by robert
Leonid,

Found and fixed in next build

Robert