Skip to content

NullReferenceException from ModuleActiveRadiator.IsSibling #249

Closed
@BrettRyland

Description

@BrettRyland

An issue I often see in my logs comes from when radiators are being used (typically in conjunction with a nuclear power supply). When one of them gets destroyed (e.g., during space combat with BDArmory), the log gets a long string of the following exception until the other radiators get destroyed too.

[EXC 09:05:05.451] NullReferenceException: Object reference not set to an instance of an object
  ModuleActiveRadiator.IsSibling (Part targetPart) (at <be370b73275e49439ea5e41ceef6700f>:0)
  ModuleCoreHeat.MoveCoreEnergyToRadiators (System.Double excess, System.Double deltaTime) (at <be370b73275e49439ea5e41ceef6700f>:0)
  ModuleCoreHeat.FixedUpdate () (at <be370b73275e49439ea5e41ceef6700f>:0)
  UnityEngine.DebugLogHandler:LogException(Exception, Object)
  ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
  UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object)

This is a call that's part of KSP's heat system ModuleActiveRadiator.IsSibling
Is there anything that can be done to fix this?

The full log is KSP.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    kspBugIdentified KSP issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions