njthomson / SrvSurvey

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

NullReferenceException "Object reference not set to an instance of an object." at 14/01/2024 08:17:11 +00:00 #38

Closed brammmers closed 10 months ago

brammmers commented 10 months ago

What happened?

I was setting the compass target, using coords already in the boxes from last session. I clicked on "set target" and the Oops box appeared.

Version

1.1.0.13

Exception message

Object reference not set to an instance of an object.

Exception stack

at SrvSurvey.Main.btnGroundTarget_Click(Object sender, EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) 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":"r298704/r0 ","timestamp":"2024-01-14T08:15:19Z","event":"Fileheader"}
08:15:23: EliteDangerous window reposition: {X=696,Y=36,Width=2560,Height=1440} => {X=699,Y=36,Width=2560,Height=1440}
08:15:23: Program.repositionPlotters: 0, rect{X=699,Y=36,Width=2560,Height=1440}
08:15:23: EliteDangerous window reposition: {X=699,Y=36,Width=2560,Height=1440} => {X=700,Y=36,Width=2560,Height=1440}
08:15:23: Program.repositionPlotters: 0, rect{X=700,Y=36,Width=2560,Height=1440}
08:15:23: New journal file created: Journal.2024-01-14T081523.01.log
08:15:23: Main.newGame: has old game:False 
08:15:23: Game .ctor
08:15:23: Reading: Journal.2024-01-14T081523.01.log
08:15:23: Game.initializeFromJournal: BEGIN  (FID:), journals.Count:0
08:15:23: Game.initializeFromJournal: END Commander:, starSystem:, systemLocation:, systemBody:, journals.Count:0
08:15:23: Mode change NoFocus => MainMenu
08:15:23: Cmdr loaded: False
08:15:23: Program.Creating plotter: PlotPulse
08:15:23: Program.Showing plotter: PlotPulse
08:15:23: migratedScannedOrganicsInEntryId: , migratedNonSystemDataOrganics: 
08:15:38: Exception: Object reference not set to an instance of an object.
08:15:38: Inner exception: 
08:15:38: Stack:    at SrvSurvey.Main.btnGroundTarget_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, WM msg, IntPtr wparam, IntPtr lparam)
08:15:50: Game.event => Fileheader
08:17:02: Opening link: (length: 656)
https://github.com:443/njthomson/SrvSurvey/issues/new?template=crash-report.yml&title=NullReferenceException+%22Object+reference+not+set+to+an+instance+of+an+object.%22+at+14%2F01%2F2024+08%3A17%3A02+
njthomson commented 10 months ago

@brammmers - I could not force a repro of this but I made changes to where I think this was happening. Let me know if you see it again in recent builds.