Skip to content

(BUG) sun:body results in NullReferenceException instead of a normal kOS error #3200

Description

@Earth-And-Moon

When you try to access sun:body (or whatever the name of the root body of the universe may be in a modded system), you get

Image

I know that you can use body:hasbody to check if an object has a parent body but it should still maybe say a more descriptive error like "Cannot get the parent body of the center of the universe" or something similar instead of just crashing like this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions