MuMech/MechJeb2

MechJebModuleAscentMenu is throwing once in the VAB

lamont-granquist opened this issue · 1 comments

[ERR 13:44:44.611] MechJeb module MechJebModuleAscentMenu threw an exception in OnLoad: System.NullReferenceException: Object reference not set to an instance of an object
  at MuMech.MechJebModuleAscentMenu.OnModuleEnabled () [0x00001] in <e0d279442f254ec096f5ee725c220f71>:0
  at MuMech.ComputerModule.set_enabled (System.Boolean value) [0x0002b] in <e0d279442f254ec096f5ee725c220f71>:0
  at MuMech.DisplayModule.OnLoad (ConfigNode local, ConfigNode type, ConfigNode global) [0x0004e] in <e0d279442f254ec096f5ee725c220f71>:0
  at MuMech.MechJebCore.OnLoad (ConfigNode sfsNode) [0x0035e] in <e0d279442f254ec096f5ee725c220f71>:0

probably some janky thing I'm doing there.

OnLoad runs before OnStart. OnLoad is where enabled is set and this calls OnModuleEnabled. So _pvgSettingsMenu and _settingsMenu are still null at that point.