AvaloniaUI / AvaloniaVS

Visual Studio Extension for Avalonia
MIT License
424 stars 82 forks source link

fix: Random NRE #469

Closed workgroupengineering closed 5 months ago

workgroupengineering commented 5 months ago

Random Avalonia VS throws a NRE, it depends on the following code

https://github.com/AvaloniaUI/AvaloniaVS/blob/a297a692b45f16004b462a5f76fd423efd82cb8a/AvaloniaVS.Shared/IntelliSense/XamlCompletionCommandHandler.cs#L470-L474

To avoid the issue , I copy the session reference into the local variable before using the session.