Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullReferenceException from ModuleActiveRadiator.IsSibling #249

Open
BrettRyland opened this issue Sep 2, 2024 · 0 comments
Open

NullReferenceException from ModuleActiveRadiator.IsSibling #249

BrettRyland opened this issue Sep 2, 2024 · 0 comments

Comments

@BrettRyland
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant