NullReferenceException when editing

This forum is meant for questions and discussions about the X# language and tools
Post Reply
leon-ts
Posts: 435
Joined: Fri Feb 03, 2017 1:43 pm

NullReferenceException when editing

Post 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
Best regards,
Leonid
User avatar
robert
Posts: 4520
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

NullReferenceException when editing

Post by robert »

Leonid,

Found and fixed in next build

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
Post Reply