GER-Space / Kerbal-Konstructs

KSP Mod: Kerbal Konstrucs
https://forum.kerbalspaceprogram.com/index.php?/topic/151818-145-131-122-kerbal-konstructs-1452-12082018/&
27 stars 28 forks source link

"Null reference exception" log output when accessing the "research" facility GUI. #108

Closed Mechfan closed 6 years ago

Mechfan commented 6 years ago

When opening the GUI for any konstruct set as a "research" facility, the GUI opens, but just as a flat grey screen, and the log exports this repeatedly:

[EXC 04:05:25.240] NullReferenceException: Object reference not set to an instance of an object KerbalKonstructs.UI.ProductionGUI.ProductionInterface (KerbalKonstructs.Core.StaticInstance selectedFacility, System.String facilityType) KerbalKonstructs.UI.FacilityManager.drawFacilityManagerWindow (Int32 windowID) UnityEngine.GUI.CallWindowDelegate (UnityEngine.WindowFunction func, Int32 id, Int32 instanceID, UnityEngine.GUISkin _skin, Int32 forceRect, Single width, Single height, UnityEngine.GUIStyle style)

GER-Space commented 6 years ago

fixed with: https://github.com/GER-Space/Kerbal-Konstructs/commit/2d05c5f7cc3a6ccdf51d5ed653506334546b25dd