post-kerbin-mining-corporation / NearFuturePropulsion

Adds advanced electric propulsion systems to Kerbal Space Program
35 stars 30 forks source link

ElectricEngineThrustLimiter.GetInfo causes NRE at game load time #1

Closed jgottula closed 9 years ago

jgottula commented 10 years ago

Built the latest git version, tried to load up the game, and it hit a NullReferenceException on the first NFP part it tried to load (ionArgon-0625), which halted the loading process.

Seems to be caused by ea219cd678ed544c1e5ac4bce5dcea7b250470b8. I believe the game calls ElectricEngineThrustLimiter.GetInfo on an instance where engine is null. I don't have any more information than that, unfortunately, but I hope this is enough to help fix the problem.

ChrisAdderley commented 10 years ago

I think I forgot to commit my fix for that about a month ago. I have no trouble building and loading at least.