njthomson / SrvSurvey

A new to help Commanders in planet based opperations
GNU General Public License v3.0
38 stars 1 forks source link

ArgumentNullException "Value cannot be null. (Parameter 'text')" at 27/01/2024 08:30:28 +00:00 #49

Closed brammmers closed 9 months ago

brammmers commented 10 months ago

What happened?

Was looking at the guardian sites list, right-clicked on "GR 1" row, oops dialog appeared

Version

1.1.0.25

Exception message

Value cannot be null. (Parameter 'text')

Exception stack

at System.Windows.Forms.ArgumentValidation.ThrowIfNullOrEmpty(String argument, String paramName) at System.Windows.Forms.Clipboard.SetText(String text, TextDataFormat format) at SrvSurvey.FormBeacons.notesToolStripMenuItem_Click(Object sender, EventArgs e) at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e) at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e) at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e) at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea) at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ScrollableControl.WndProc(Message& m) at System.Windows.Forms.ToolStrip.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, WM msg, IntPtr wparam, IntPtr lparam)

Contact Details

No response

Relevant log output

{"part":1,"Odyssey":true,"gameversion":"4.0.0.1701","build":"r299332/r0 ","timestamp":"2024-01-27T07:36:31Z","event":"Fileheader"}
08:26:31: Game.event => Music
08:26:31: Mode change SuperCruising => GlideMode
08:26:31: Program.Closing plotter: PlotSysStatus
08:26:39: Game.event => Music
08:26:44: Mode change GlideMode => ExternalPanel
08:26:44: Program.Creating plotter: PlotSysStatus
08:26:44: Searching journals for last touchdown location... (mode: ExternalPanel)
08:26:44: searchJournalsDeep: count: 1
08:26:44: Program.Showing plotter: PlotSysStatus
08:26:48: Mode change ExternalPanel => Flying
08:26:48: Program.Closing plotter: PlotSysStatus
08:26:52: Game.event => Music
08:27:29: Game.event => Music
08:27:30: Mode change Flying => Docked
08:27:34: Mode change Docked => StationServices
08:29:46: loadAllRuins: incRamTahLogs: False
08:29:46: Rendering 30 beacons, 155 structures
08:30:18: Exception: Value cannot be null. (Parameter 'text')
08:30:18: Inner exception: 
08:30:18: Stack:    at System.Windows.Forms.ArgumentValidation.ThrowIfNullOrEmpty(String argument, String paramName)
   at System.Windows.Forms.Clipboard.SetText(String text, TextDataFormat format)
   at SrvSurvey.FormBeacons.notesToolStripMenuItem_Click(Object sender, EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, WM msg, IntPtr wparam, IntPtr lparam)
brammmers commented 10 months ago

Chose "notes" from pop up context menu

njthomson commented 10 months ago

Doh, this will be an easy fix.

njthomson commented 10 months ago

Fix is pending for the next build.

njthomson commented 9 months ago

This is fixed in most recent builds - let me know if it happens again.