KEMBAR78
System.NullReferenceException on right click on .NET 9 · Issue #3402 · icsharpcode/ILSpy · GitHub
Skip to content

System.NullReferenceException on right click on .NET 9 #3402

@PetSerAl

Description

@PetSerAl

Steps to reproduce

See attached video:

  1. Left click on Action (node A)
  2. Left click on decompiled code
  3. Right click on Action<T> (node B, anything but node A)
  4. Right click on Action (anything but node B)

Error message shown

System.NullReferenceException: Object reference not set to an instance of an object.
   at System.Linq.Enumerable.ArrayWhereIterator`1.ToArray(ReadOnlySpan`1 source, Func`2 predicate)
   at System.Linq.Enumerable.ListWhereIterator`1.ToArray()
   at TomsToolbox.Essentials.WeakEventSource`1.Raise(Object sender, TEventArgs e)
   at ICSharpCode.ILSpy.ContextMenuProvider.<>c__DisplayClass23_0.<ShowContextMenu>g__ContextMenu_Closing|0(Object sender, EventArgs e)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.Controls.Primitives.Popup.OnClosed(EventArgs e)
   at System.Windows.Controls.Primitives.Popup.DestroyWindow()
   at System.Windows.Threading.DispatcherTimer.FireTick()
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
Error.mp4

Details

Product in use: ILSpy
ILSpy version 9.0.0.7889+e94eb917395e50c74ea363a79df3514538989daa
.NET version 9.0.2+80aa709f5d919c6814726788dc6dabe23e79e672

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions