rffrasca / PDFKeeper

Open Source PDF Document Management
https://www.pdfkeeper.org/
GNU General Public License v3.0
110 stars 11 forks source link

System.NullReferenceException: Object reference not set to an instance of an object. #36

Closed rffrasca closed 3 weeks ago

rffrasca commented 3 weeks ago

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)