Skip to content

ADDONS:TR:PLANNEDVEC is broken #2214

@Efratror

Description

@Efratror

When using this code:

IF ADDONS:TR:AVALABLE { IF ADDONS:TR:HASINPACT { PRINT ADDONS:TR:PLANNEDVEC.} } }

you get an exeption:

Exception has been thrown by the target of an invocation.

and this log entry:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object
at Trajectories.DescentProfile.GetAngleOfAttack (.CelestialBody body, Vector3d position, Vector3d velocity) [0x00000] in :0
at Trajectories.NavBallOverlay.GetPlannedDirection () [0x00000] in :0
at Trajectories.API.plannedDirection () [0x00000] in :0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in :0
--- End of inner exception stack trace ---
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in :0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in :0
at kOS.AddOns.TrajectoriesAddon.TRWrapper.PlannedDirection () [0x00000] in :0
at kOS.AddOns.TrajectoriesAddon.Addon.PlannedVector () [0x00000] in :0
at kOS.Safe.Encapsulation.Suffixes.Suffix`1[kOS.Suffixed.Vector].Get () [0x00000] in :0
at kOS.Safe.Encapsulation.Structure.GetSuffix (System.String suffixName) [0x00000] in :0
at kOS.Safe.Compilation.OpcodeGetMember.Execute (ICpu cpu) [0x00000] in :0
at kOS.Safe.Execution.CPU.ExecuteInstruction (IProgramContext context, Boolean doProfiling) [0x00000] in :0

I think it is a issue with the trajectories mod it self but I'm not sure so that's why i post it here also.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions