TriggerAu / TransferWindowPlanner

An ingame implementation of Alexmun's Launch Window Planner
MIT License
64 stars 36 forks source link

NRE when changing planet in the drop down menu. #56

Open Galenmacil opened 5 years ago

Galenmacil commented 5 years ago

Whenever a new planet is selected, this happens:

_[EXC 18:41:33.852] NullReferenceException: Object reference not set to an instance of an object TransferWindowPlanner.TWPWindow.HideAngles () TransferWindowPlanner.TWPWindow.ddlDestination_OnSelectionChanged (KSPPluginFramework.DropDownList sender, Int32 OldIndex, Int32 NewIndex) KSPPluginFramework.MonoBehaviourWindowPlus+DropDownList.DrawBlockingSelector () KSPPluginFramework.MonoBehaviourWindowPlus+DropDownListManager.DrawBlockingSelectors () KSPPluginFramework.MonoBehaviourWindowPlus.DrawWindowPre (Int32 id) KSPPluginFramework.MonoBehaviourWindow.DrawWindowInternal (Int32 id) UnityEngine.GUILayout+LayoutedWindow.DoWindow (Int32 windowID) UnityEngine.GUI.CallWindowDelegate (UnityEngine.WindowFunction func, Int32 id, Int32 instanceID, UnityEngine.GUISkin _skin, Int32 forceRect, Single width, Single height, UnityEngine.GUIStyle style) [LOG 18:41:39.487] 6/12/2019 6:41:39 PM,TransferWindowPlanner,Generating DeltaV Values [LOG 18:41:39.751] 6/12/2019 6:41:39 PM,TransferWindowPlanner,Working out Log Values to determine DeltaV->Color Mapping [LOG 18:41:39.753] 6/12/2019 6:41:39 PM,TransferWindowPlanner,Generating DeltaV Color Palette [LOG 18:41:39.753] 6/12/2019 6:41:39 PM,TransferWindowPlanner,Placing ColorIndexes in array [LOG 18:41:39.756] 6/12/2019 6:41:39 PM,TransferWindowPlanner,5.7695243002966 [LOG 18:41:39.756] 6/12/2019 6:41:39 PM,TransferWindowPlanner,ERROR: Background Worker Failed Object reference not set to an instance of an object at TransferWindowPlanner.TWPWindow.SetTransferDetails () [0x00000] in :0 at TransferWindowPlanner.TWPWindow.bwGeneratePorkchop (System.Object sender, System.ComponentModel.DoWorkEventArgs e) [0x00000] in :0 [LOG 18:41:39.818] 6/12/2019 6:41:39 PM,TransferWindowPlanner,Placing Colors on texture-292x292

KSP.log

TriggerAu commented 5 years ago

Ive been unable to repro this one or see where it could be dgoing wrong in the logged methods, if you can give me some more detail on the steps, or specific planets your changing from to I could have a look