Describe the bug
Before the main form opens during startup, a System.NullReferenceException is being thrown. After selecting OK, the main form will open and be fully operational.
Expected behavior
The main form should open without any error.
Desktop:
OS: Windows 10 22H2
PDFKeeper Version: 10.0.0
Additional context
System.NullReferenceException: Object reference not set to an instance of an object.
at PDFKeeper.WinForms.Views.MainForm.MainForm_Resize(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnResize(EventArgs e)
at System.Windows.Forms.Form.OnResize(EventArgs e)
at System.Windows.Forms.Control.OnSizeChanged(EventArgs e)
at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
at System.Windows.Forms.Control.UpdateBounds()
at System.Windows.Forms.Control.WmCreate(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Form.WmCreate(Message& m)
at PDFKeeper.WinForms.Views.MainForm.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Describe the bug Before the main form opens during startup, a System.NullReferenceException is being thrown. After selecting OK, the main form will open and be fully operational.
Expected behavior The main form should open without any error.
Desktop:
Additional context System.NullReferenceException: Object reference not set to an instance of an object. at PDFKeeper.WinForms.Views.MainForm.MainForm_Resize(Object sender, EventArgs e) at System.Windows.Forms.Control.OnResize(EventArgs e) at System.Windows.Forms.Form.OnResize(EventArgs e) at System.Windows.Forms.Control.OnSizeChanged(EventArgs e) at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight) at System.Windows.Forms.Control.UpdateBounds() at System.Windows.Forms.Control.WmCreate(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.Form.WmCreate(Message& m) at PDFKeeper.WinForms.Views.MainForm.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)