Space Engineers

Space Engineers

Build Info
This topic has been locked
Deapri 9 Mar, 2024 @ 6:54am
Exception not reported to SE Log
{System.NullReferenceException: Object reference not set to an instance of an object.
at Sandbox.Game.Gui.MyTerminalAction`1.<>c__DisplayClass66_0.<Sandbox.ModAPI.Interfaces.Terminal.IMyTerminalAction.get_Writer>b__0(IMyTerminalBlock x, StringBuilder y)}

Call Stack: > 514062285.sbm_BuildInfo!Digi.BuildInfo.Features.ToolbarInfo.ActionWrapper.NewWriter(Sandbox.ModAPI.IMyTerminalBlock block, System.Text.StringBuilder sb) (IL=0x0076, Native=0x00007FF82DF23040+0x173)

Sandbox.Game.dll!Sandbox.Game.Gui.MyTerminalAction<SpaceEngineers.Game.Entities.Blocks.MyTimerBlock>.WriteValue(Sandbox.Game.Entities.Cube.MyTerminalBlock block, System.Text.StringBuilder appendTo) (IL=epilog, Native=0x00007FF843461030+0x7A)

``` // Token: 0x06003860 RID: 14432 RVA: 0x0016B849 File Offset: 0x00169A49
public void WriteValue(MyTerminalBlock block, StringBuilder appendTo)
{
if (this.Writer != null && this.IsCallable((TBlock)((object)block)))
{
this.Writer((TBlock)((object)block), appendTo);
}
}```

I caught this exception while testing for null in an unrelated mod, occurs on game load and occasionally when entering a Cockpit/Control Seat (re-verified after this mornings update)
< >
Showing 1-2 of 2 comments
Digi  [developer] 9 Mar, 2024 @ 12:45pm 
A bit hard to tell, but If it doesn't show up in the SE log then it's most likely this: https://github.com/THDigi/BuildInfo/blob/master/Data/Scripts/BuildInfo/Features/ToolbarInfo/ActionWrapper.cs#L122-L130

And that is a game bug where it gives me an invokable that throws a NRE when I invoke it.
You can see it with PB's Run for example, that one doesn't have a writer so it'll get this issue.
Deapri 10 Mar, 2024 @ 4:02am 
Very possibly looking at that code, it occurs only on launch and the first time controlling a given ship grid in that session (does not seem to happen with station grids), a mild annoyance when debugging but far from intrusive. Not much to be done for that then, thank you for your time in responding to this Digi.
Last edited by Deapri; 10 Mar, 2024 @ 4:03am
< >
Showing 1-2 of 2 comments
Per page: 1530 50