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

MechJebModuleAscentMenu is throwing once in the VAB #1611

Open
lamont-granquist opened this issue Mar 29, 2023 · 1 comment
Open

MechJebModuleAscentMenu is throwing once in the VAB #1611

lamont-granquist opened this issue Mar 29, 2023 · 1 comment

Comments

@lamont-granquist
Copy link
Collaborator

[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.

@sarbian
Copy link
Contributor

sarbian commented Mar 30, 2023

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

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

No branches or pull requests

2 participants