Skip to content

Exception during scene switch when Replace stock is set and ARP window is open #91

@jarosm

Description

@jarosm

This line in KSPAlternateResourcePanel:SetAppButtonToTrue() throws null ref exception during scene switch (into flight scene) when ARP is set to replace stock panel and ARP window was open prior scene switch, because ResourceDisplay.Instance is null.

ButtonToToggle = ResourceDisplay.Instance.appLauncherButton;

The exception isn't thrown if ARP panel was closed when leaving flight scene.
The exception is thrown only when switching into flight scene.
There is no visible impact on ARP function.

I can add logs if you want.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions