carfup / XTBPlugins.PCF2BPF

Add PCF controls to your BPF in few clicks !
GNU General Public License v3.0
4 stars 0 forks source link

Error when clicking 'Add Control / Apply changes' #18

Open Bozwell99 opened 7 months ago

Bozwell99 commented 7 months ago

A minor issue but if the 'Add Control / Apply changes' is clicked while no PCF is selected an error occurs:

Screenshot 2024-04-12 123703

See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.

** Exception Text ** System.NullReferenceException: Object reference not set to an instance of an object. at Carfup.XTBPlugins.AppCode.FormAttribute.EditCustomControl(PCFDetails pcf, Int32 formFactor) at Carfup.XTBPlugins.PCF2BPF.PCF2BPF.btnAddApplyControl_Click(Object sender, EventArgs e) at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Button.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)