FCS null reference exception on right-click of building nodes or node list header
Posted: Sun Mar 24, 2024 10:47 pm
In FCS 2.14.2, the following null reference exception occurs when editing a building, upon right-clicking on the nodes header or any item in the nodes list.
Nodes can be added and their positions edited, but the NRE makes removal impossible.
Nodes can be added and their positions edited, but the NRE makes removal impossible.
Code: Select all
System.NullReferenceException: Object reference not set to an instance of an object.
at forgotten_construction_set.ReferenceList.contextMenu_Opening(Object sender, CancelEventArgs e)
at System.Windows.Forms.ToolStripDropDown.OnOpening(CancelEventArgs e)
at System.Windows.Forms.ToolStripDropDown.SetVisibleCore(Boolean visible)
at System.Windows.Forms.ContextMenuStrip.SetVisibleCore(Boolean visible)
at System.Windows.Forms.ToolStripDropDown.Show(Control control, Point position)
at System.Windows.Forms.ContextMenuStrip.ShowInternal(Control source, Point location, Boolean isKeyboardActivated)
at System.Windows.Forms.Control.WmContextMenu(Message& m, Control sourceControl)
at System.Windows.Forms.Control.WmContextMenu(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)