I need hlep with a null reference exception during docking

this is the reference

15.00.59 121 System.AggregateException: Mindestens ein Fehler ist aufgetreten. —> System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
bei Submission#0.OreHoldFilledForOffload()
bei Submission#0.InBeltMineStep()
bei Submission#0.<>d__0.MoveNext()
— Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde —
bei System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
bei Microsoft.CodeAnalysis.Scripting.ScriptExecutionState.d__91.MoveNext() --- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde --- bei System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) bei Microsoft.CodeAnalysis.Scripting.Script1.d__21.MoveNext()
— Ende der internen Ausnahmestapelüberwachung —
bei System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
bei System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification) bei System.Threading.Tasks.Task1.get_Result()
bei BotSharp.ScriptRun.ScriptRun.<>c__DisplayClass61_0.b__0()
—> (Interne Ausnahme #0) System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
bei Submission#0.OreHoldFilledForOffload()
bei Submission#0.InBeltMineStep()
bei Submission#0.<>d__0.MoveNext()
— Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde —
bei System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
bei Microsoft.CodeAnalysis.Scripting.ScriptExecutionState.d__91.MoveNext() --- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde --- bei System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) bei Microsoft.CodeAnalysis.Scripting.Script1.d__21.MoveNext()<—

and this is the code

EnsureWindowInventoryOpenOreHold();
string help = null;
help =Measurement.WindowInventory[0].SelectedRightInventoryCapacity.Text.ToString();
if(string.IsNullOrEmpty(help))
	return false;

any hint welcome

Not sure what kind of hint you expect, so maybe…
Check the original code and usage of nullables there.

The log in the Sanderling IDE contains a column labeled “line” which contains the number of the line in the source where the exception ocurred. With this information, you should be able to narrow down the cause to one line of source code.
This is the same number which is displayed after “Ln” in the editor to indicate the line number of the current cursor position.
See the screenshot below for an example how this looks like:

Also, when you click on the line number, the cursor is placed at the line in the editor.