{"action":"opened","issue":{"url":"https://api.github.com/repos/olga-jane/prizm/issues/1438","labels_url":"https://api.github.com/repos/olga-jane/prizm/issues/1438/labels{/name}","comments_url":"https://api.github.com/repos/olga-jane/prizm/issues/1438/comments","events_url":"https://api.github.com/repos/olga-jane/prizm/issues/1438/events","html_url":"https://github.com/olga-jane/prizm/issues/1438","id":57909162,"number":1438,"title":"Unhandled NullReferenceException in Settings->Pipe form","user":{"login":"IgorVskpsn","id":10723795,"avatar_url":"https://avatars.githubusercontent.com/u/10723795?v=3","gravatar_id":"","url":"https://api.github.com/users/IgorVskpsn","html_url":"https://github.com/IgorVskpsn","followers_url":"https://api.github.com/users/IgorVskpsn/followers","following_url":"https://api.github.com/users/IgorVskpsn/following{/other_user}","gists_url":"https://api.github.com/users/IgorVskpsn/gists{/gist_id}","starred_url":"https://api.github.com/users/IgorVskpsn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IgorVskpsn/subscriptions","organizations_url":"https://api.github.com/users/IgorVskpsn/orgs","repos_url":"https://api.github.com/users/IgorVskpsn/repos","events_url":"https://api.github.com/users/IgorVskpsn/events{/privacy}","received_events_url":"https://api.github.com/users/IgorVskpsn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-17T10:48:33Z","updated_at":"2015-02-17T10:48:33Z","closed_at":null,"body":"Steps to reproduce:\r\n1) Go to the Settings->Pipe form\r\n2) Create a new pipe size parameter\r\n3) Fill in the pipe's diameter, wall thickness, pipe length and seam type boxes.\r\n4) If you press save button now it will show you a warning which says that you haven't fill in all the boxes.\r\n5) Cross mark will be shown near the last record in the inspection operations grid. So let us fill it. Select last record and click the Edit button.\r\n6) In the edition form fill in the Code and Name boxes and press Save.\r\n7) Now press Save button on the Settings->Pipe form.\r\n\r\nExpected result:\r\nA warning which says to fill in all the fields in records.\r\n\r\nActual result:\r\nAn actual attempt to save records in database and unhandled NullReferenceException.\r\n\r\nAdditional info:\r\n\r\nThe long story of the exception, shown in error message:\r\nSystem.NullReferenceException: Ссылка на объект не указывает на экземпляр объекта.\r\n   в Prizm.Main.Forms.Settings.SaveSettingsCommand.SaveMillSizeTypes()\r\n   в Prizm.Main.Forms.Settings.SaveSettingsCommand.Execute()\r\n   в Prizm.Main.Commands.CommandInfo.SimpleButtonAttacher.btn_Click(Object sender, EventArgs e)\r\n   в System.Windows.Forms.Control.OnClick(EventArgs e)\r\n   в DevExpress.XtraEditors.BaseButton.OnClick(EventArgs e)\r\n   в DevExpress.XtraEditors.BaseButton.OnMouseUp(MouseEventArgs e)\r\n   в System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)\r\n   в System.Windows.Forms.Control.WndProc(Message& m)\r\n   в DevExpress.Utils.Controls.ControlBase.WndProc(Message& m)\r\n   в DevExpress.XtraEditors.BaseControl.WndProc(Message& msg)\r\n   в System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)\r\n   в System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)\r\n   в System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)\r\n\r\nScreenshot:\r\n![image](https://cloud.githubusercontent.com/assets/10723795/6227002/418b1592-b6a3-11e4-8d2b-b9f856a742fc.png)\r\n"}}