{"action":"created","issue":{"url":"https://api.github.com/repos/chummer5a/chummer5a/issues/796","repository_url":"https://api.github.com/repos/chummer5a/chummer5a","labels_url":"https://api.github.com/repos/chummer5a/chummer5a/issues/796/labels{/name}","comments_url":"https://api.github.com/repos/chummer5a/chummer5a/issues/796/comments","events_url":"https://api.github.com/repos/chummer5a/chummer5a/issues/796/events","html_url":"https://github.com/chummer5a/chummer5a/issues/796","id":144742191,"number":796,"title":"Exception thrown when opening up options and when trying to save","user":{"login":"oddmage","id":16022384,"avatar_url":"https://avatars.githubusercontent.com/u/16022384?v=3","gravatar_id":"","url":"https://api.github.com/users/oddmage","html_url":"https://github.com/oddmage","followers_url":"https://api.github.com/users/oddmage/followers","following_url":"https://api.github.com/users/oddmage/following{/other_user}","gists_url":"https://api.github.com/users/oddmage/gists{/gist_id}","starred_url":"https://api.github.com/users/oddmage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oddmage/subscriptions","organizations_url":"https://api.github.com/users/oddmage/orgs","repos_url":"https://api.github.com/users/oddmage/repos","events_url":"https://api.github.com/users/oddmage/events{/privacy}","received_events_url":"https://api.github.com/users/oddmage/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-30T22:51:15Z","updated_at":"2016-03-31T00:31:35Z","closed_at":null,"body":"##Required Fields\r\nPlease fill these out as accurately as possible. More detail makes it easier for us to find the problems and fix them.\r\n\r\n### Chummer Version\r\n5.179.781 nightly\r\n\r\n### Expected behaviour\r\nAble to open and save options\r\n\r\n### Actual behaviour\r\nAfter overidding chummer with latest nightly and going to options to set to pdf location for Rigger 5 I get an error openiong options.  If I continue I see options and some are set (PDF reader got cleared but most of the pdf locations were saved), but can't save.\r\n\r\n\r\nOpening Exception:\r\nSee the end of this message for details on invoking \r\njust-in-time (JIT) debugging instead of this dialog box.\r\n\r\n************** Exception Text **************\r\nSystem.NullReferenceException: Object reference not set to an instance of an object.\r\n   at Chummer.frmOptions.cboSetting_SelectedIndexChanged(Object sender, EventArgs e) in C:\\projects\\chummer5a\\Chummer\\frmOptions.cs:line 200\r\n   at System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e)\r\n   at System.Windows.Forms.ComboBox.set_SelectedIndex(Int32 value)\r\n   at Chummer.frmOptions.SetDefaultValueForSettingsList() in C:\\projects\\chummer5a\\Chummer\\frmOptions.cs:line 1087\r\n   at Chummer.frmOptions.frmOptions_Load(Object sender, EventArgs e) in C:\\projects\\chummer5a\\Chummer\\frmOptions.cs:line 50\r\n   at System.Windows.Forms.Form.OnLoad(EventArgs e)\r\n   at System.Windows.Forms.Form.OnCreateControl()\r\n   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)\r\n   at System.Windows.Forms.Control.CreateControl()\r\n   at System.Windows.Forms.Control.WmShowWindow(Message& m)\r\n   at System.Windows.Forms.Control.WndProc(Message& m)\r\n   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)\r\n   at System.Windows.Forms.ContainerControl.WndProc(Message& m)\r\n   at System.Windows.Forms.Form.WmShowWindow(Message& m)\r\n   at System.Windows.Forms.Form.WndProc(Message& m)\r\n   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)\r\n   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)\r\n   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)\r\n\r\n\r\n************** Loaded Assemblies **************\r\nmscorlib\r\n    Assembly Version: 4.0.0.0\r\n    Win32 Version: 4.0.30319.18444 built by: FX451RTMGDR\r\n    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll\r\n----------------------------------------\r\nChummer5\r\n    Assembly Version: 5.179.781.0\r\n    Win32 Version: 5.179.781\r\n    CodeBase: file:///C:/Users/odd/Dropbox/Chummer5166/Chummer5.exe\r\n----------------------------------------\r\nSystem.Core\r\n    Assembly Version: 4.0.0.0\r\n    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL\r\n    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll\r\n----------------------------------------\r\nSystem\r\n    Assembly Version: 4.0.0.0\r\n    Win32 Version: 4.0.30319.34238 built by: FX452RTMGDR\r\n    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll\r\n----------------------------------------\r\nSystem.Windows.Forms\r\n    Assembly Version: 4.0.0.0\r\n    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL\r\n    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll\r\n----------------------------------------\r\nSystem.Drawing\r\n    Assembly Version: 4.0.0.0\r\n    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL\r\n    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll\r\n----------------------------------------\r\nSystem.Xml\r\n    Assembly Version: 4.0.0.0\r\n    Win32 Version: 4.0.30319.34234 built by: FX452RTMGDR\r\n    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll\r\n----------------------------------------\r\nSystem.Configuration\r\n    Assembly Version: 4.0.0.0\r\n    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL\r\n    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll\r\n----------------------------------------\r\n\r\n************** JIT Debugging **************\r\nTo enable just-in-time (JIT) debugging, the .config file for this\r\napplication or computer (machine.config) must have the\r\njitDebugging value set in the system.windows.forms section.\r\nThe application must also be compiled with debugging\r\nenabled.\r\n\r\nFor example:\r\n\r\n<configuration>\r\n    <system.windows.forms jitDebugging=\"true\" />\r\n</configuration>\r\n\r\nWhen JIT debugging is enabled, any unhandled exception\r\nwill be sent to the JIT debugger registered on the computer\r\nrather than be handled by this dialog box.\r\n\r\nSave Exception:\r\nSee the end of this message for details on invoking \r\njust-in-time (JIT) debugging instead of this dialog box.\r\n\r\n************** Exception Text **************\r\nSystem.NullReferenceException: Object reference not set to an instance of an object.\r\n   at Chummer.frmOptions.SaveGlobalOptions() in C:\\projects\\chummer5a\\Chummer\\frmOptions.cs:line 675\r\n   at Chummer.frmOptions.SaveRegistrySettings() in C:\\projects\\chummer5a\\Chummer\\frmOptions.cs:line 697\r\n   at Chummer.frmOptions.cmdOK_Click(Object sender, EventArgs e) in C:\\projects\\chummer5a\\Chummer\\frmOptions.cs:line 70\r\n   at System.Windows.Forms.Control.OnClick(EventArgs e)\r\n   at System.Windows.Forms.Button.OnClick(EventArgs e)\r\n   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)\r\n   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)\r\n   at System.Windows.Forms.Control.WndProc(Message& m)\r\n   at System.Windows.Forms.ButtonBase.WndProc(Message& m)\r\n   at System.Windows.Forms.Button.WndProc(Message& m)\r\n   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)\r\n   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)\r\n   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)\r\n\r\n\r\n************** Loaded Assemblies **************\r\nmscorlib\r\n    Assembly Version: 4.0.0.0\r\n    Win32 Version: 4.0.30319.18444 built by: FX451RTMGDR\r\n    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll\r\n----------------------------------------\r\nChummer5\r\n    Assembly Version: 5.179.781.0\r\n    Win32 Version: 5.179.781\r\n    CodeBase: file:///C:/Users/odd/Dropbox/Chummer5166/Chummer5.exe\r\n----------------------------------------\r\nSystem.Core\r\n    Assembly Version: 4.0.0.0\r\n    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL\r\n    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll\r\n----------------------------------------\r\nSystem\r\n    Assembly Version: 4.0.0.0\r\n    Win32 Version: 4.0.30319.34238 built by: FX452RTMGDR\r\n    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll\r\n----------------------------------------\r\nSystem.Windows.Forms\r\n    Assembly Version: 4.0.0.0\r\n    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL\r\n    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll\r\n----------------------------------------\r\nSystem.Drawing\r\n    Assembly Version: 4.0.0.0\r\n    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL\r\n    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll\r\n----------------------------------------\r\nSystem.Xml\r\n    Assembly Version: 4.0.0.0\r\n    Win32 Version: 4.0.30319.34234 built by: FX452RTMGDR\r\n    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll\r\n----------------------------------------\r\nSystem.Configuration\r\n    Assembly Version: 4.0.0.0\r\n    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL\r\n    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll\r\n----------------------------------------\r\n\r\n************** JIT Debugging **************\r\nTo enable just-in-time (JIT) debugging, the .config file for this\r\napplication or computer (machine.config) must have the\r\njitDebugging value set in the system.windows.forms section.\r\nThe application must also be compiled with debugging\r\nenabled.\r\n\r\nFor example:\r\n\r\n<configuration>\r\n    <system.windows.forms jitDebugging=\"true\" />\r\n</configuration>\r\n\r\nWhen JIT debugging is enabled, any unhandled exception\r\nwill be sent to the JIT debugger registered on the computer\r\nrather than be handled by this dialog box.\r\n\r\n### Steps to reproduce the behaviour\r\nOverride old version (I think 5.166) of chummer with latest nightly by copying and replacing.\r\n\r\nNot positive if it was because I set my pdfs up (just did it before upgrading to see what it was like)\r\n\r\n##Helpful Fields\r\nThese may not be relevant in most cases. If they are, please fill them out. Otherwise, feel free to remove them.\r\n\r\n### Operating System\r\nWindows 7.\r\n\r\n### Use of international language content\r\n\r\n### Last known good version\r\n\r\n### Link to affected character file\r\n"},"comment":{"url":"https://api.github.com/repos/chummer5a/chummer5a/issues/comments/203695903","html_url":"https://github.com/chummer5a/chummer5a/issues/796#issuecomment-203695903","issue_url":"https://api.github.com/repos/chummer5a/chummer5a/issues/796","id":203695903,"user":{"login":"chummer5a","id":11448441,"avatar_url":"https://avatars.githubusercontent.com/u/11448441?v=3","gravatar_id":"","url":"https://api.github.com/users/chummer5a","html_url":"https://github.com/chummer5a","followers_url":"https://api.github.com/users/chummer5a/followers","following_url":"https://api.github.com/users/chummer5a/following{/other_user}","gists_url":"https://api.github.com/users/chummer5a/gists{/gist_id}","starred_url":"https://api.github.com/users/chummer5a/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chummer5a/subscriptions","organizations_url":"https://api.github.com/users/chummer5a/orgs","repos_url":"https://api.github.com/users/chummer5a/repos","events_url":"https://api.github.com/users/chummer5a/events{/privacy}","received_events_url":"https://api.github.com/users/chummer5a/received_events","type":"User","site_admin":false},"created_at":"2016-03-31T00:31:35Z","updated_at":"2016-03-31T00:31:35Z","body":"Is the error when opening the options file, or when saving it? Is there anything listed in the Default Character Sheet dropdown box?"}}