Opened 10 years ago
Closed 10 years ago
#276 closed defect (released)
Crash with null pointer when changing translation after closing army tree
Reported by: | ibboard | Owned by: | ibboard |
---|---|---|---|
Priority: | trivial | Milestone: | WarFoundry 0.1 |
Component: | WarFoundry-GUI-WinForms | Version: | WarFoundry 0.1b8 |
Keywords: | nullpointer translation | Cc: | |
Blocked By: | Blocking: |
Description
The army tree doesn't correctly unsubscribe itself from events and so a null pointer occurs when changing the app language after closing the army tree.
Change History (4)
comment:1 Changed 10 years ago by
Status: | new → confirmed |
---|---|
Version: | → WarFoundry 0.1b8 |
comment:2 Changed 10 years ago by
Priority: | major → trivial |
---|
Lowering priority to "Trivial". Only affects Linux because Mono puts a close button on the Army Tree when Windows doesn't.
Stack trace:
System.NullReferenceException: Object reference not set to an instance of an object at System.Windows.Forms.MdiWindowManager.FormTextChangedHandler (System.Object sender, System.EventArgs e) [0x00000] at System.Windows.Forms.Control.OnTextChanged (System.EventArgs e) [0x00000] at System.Windows.Forms.Form.OnTextChanged (System.EventArgs e) [0x00000] at System.Windows.Forms.Control.set_Text (System.String value) [0x00000] at System.Windows.Forms.Form.set_Text (System.String value) [0x00000] at IBBoard.Lang.Translation.Translate (ITranslatable item, System.String defaultText, System.Object[] replacements) [0x00000] at IBBoard.Windows.Forms.I18N.ControlTranslator.Translate (ITranslatable translatable, System.Object[] replacements) [0x00000] at IBBoard.Windows.Forms.I18N.ControlTranslator.TranslateControl (System.Windows.Forms.Control ctrl, Boolean cascadeTranslate, System.Object[] replacements) [0x00000] at IBBoard.Windows.Forms.I18N.ControlTranslator.TranslateControl (System.Windows.Forms.Control ctrl, System.Object[] replacements) [0x00000] at IBBoard.WarFoundry.GUI.WinForms.FrmArmyTree.TranslateForm () [0x00000] at (wrapper delegate-invoke) IBBoard.MethodInvoker:invoke_void__this__ () at (wrapper delegate-invoke) IBBoard.MethodInvoker:invoke_void__this__ () at IBBoard.Lang.Translation.SetCurrentTranslations (IBBoard.Lang.AbstractTranslationSet newTranslations) [0x00000] at IBBoard.Lang.Translation.LoadTranslationForLanguage (System.String translationLanguage) [0x00000] at IBBoard.Lang.Translation.LoadTranslation (System.String translationLanguage) [0x00000] at IBBoard.WarFoundry.GUI.WinForms.FrmPreferences.languageList_SelectedIndexChanged (System.Object sender, System.EventArgs e) [0x00000] at System.Windows.Forms.ComboBox.OnSelectedIndexChanged (System.EventArgs e) [0x00000] at System.Windows.Forms.ComboBox.SetSelectedIndex (Int32 value, Boolean supressAutoScroll) [0x00000] at (wrapper remoting-invoke-with-check) System.Windows.Forms.ComboBox:SetSelectedIndex (int,bool) at System.Windows.Forms.ComboBox+ComboListBox.OnMouseUp (System.Windows.Forms.MouseEventArgs e) [0x00000] at System.Windows.Forms.Control.WmLButtonUp (System.Windows.Forms.Message& m) [0x00000] at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x00000] at System.Windows.Forms.ComboBox+ComboListBox.WndProc (System.Windows.Forms.Message& m) [0x00000] at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000] at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) [0x00000]
comment:3 Changed 10 years ago by
Owner: | set to ibboard |
---|---|
Status: | confirmed → accepted |
comment:4 Changed 10 years ago by
Resolution: | → released |
---|---|
Status: | accepted → closed |
Fixed in r577 and released as part of v0.1b9
Note: See
TracTickets for help on using
tickets.
Confirm and set correct version.