[Bug]: NRE in MarkAllUpdates
miro60559 opened this issue · comments
miro60559 commented
Is there an existing issue for this?
- I have searched the existing issues
Operating System
windows 11
CKAN Version
1.34.4
Games
KSP 1
Game Version
1.12.5.3190
Did you make any manual changes to your game folder (i.e., not via CKAN)?
no.
Describe the bug
mods are not displayed at all. a window with text pops up:
Unhandled exception has occurred in your application. if you click Continue. the appľication will
ignore this error and attempt to continue.if you click Quit, the application will dose immediately.
Object reference not set to an instance of an object
Steps to reproduce
the error repeats every time you run it
Relevant log output
System.NullReferenceException: Object reference not set to an instance of an object.
at CKAN.GUI.ManageMods.MarkAllUpdates()
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.MenuStrip.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
HebaruSan commented
I think mainModList.full_list_of_mod_rows
the thing that's null when the list is empty:
CKAN/GUI/Controls/ManageMods.cs
Line 503 in 351bd94