Describe the bug
If the Ranching Bulletin Board has any germs on it, the game crashes if the germ overlay is triggered on.
To Reproduce
Steps to reproduce the behavior:
Infect the building with Food Poisoning germs.
While the building is on screen, attempt to turn on the germ overlay.
Game crashes.
Debug Logs
%AppData%..\LocalLow\Klei\Oxygen Not Included:
Unloading 6 unused Assets to reduce memory usage. Loaded Objects now: 347823.
Total: 1238.425200 ms (FindLiveObjects: 36.512900 ms CreateObjectMapping: 13.144000 ms MarkObjects: 1188.208400 ms DeleteObjects: 0.559300 ms)
NullReferenceException: Object reference not set to an instance of an object
at DiseaseContainers.UpdateOverlayColours () [0x00117] in C:\jenkins_workspace\workspace\SimGame_Windows\game\Assets\scripts\game\DiseaseContainers.cs:334
at Infrared.Update () [0x0002b] in C:\jenkins_workspace\workspace\SimGame_Windows\game\Assets\scripts\rendering\postfx\Infrared.cs:93
at Infrared.UpdateState () [0x0001c] in C:\jenkins_workspace\workspace\SimGame_Windows\game\Assets\scripts\rendering\postfx\Infrared.cs:83
at Infrared.SetMode (Infrared+Mode mode) [0x0006e] in C:\jenkins_workspace\workspace\SimGame_Windows\game\Assets\scripts\rendering\postfx\Infrared.cs:75
at OverlayModes+Disease.Enable () [0x00001] in C:\jenkins_workspace\workspace\SimGame_Windows\game\Assets\scripts\screens\OverlayModes\DiseaseMode.cs:78
at OverlayScreen.ToggleOverlay (HashedString newMode, System.Boolean allowSound) [0x000c5] in C:\jenkins_workspace\workspace\SimGame_Windows\game\Assets\scripts\screens\OverlayScreen.cs:170
at InterfaceTool.OnActivateTool () [0x00040] in C:\jenkins_workspace\workspace\SimGame_Windows\game\Assets\scripts\game\InterfaceTools\InterfaceTool.cs:85
at DragTool.OnActivateTool () [0x00001] in C:\jenkins_workspace\workspace\SimGame_Windows\game\Assets\scripts\game\InterfaceTools\DragTool.cs:47
at InterfaceTool.ActivateTool () [0x00001] in C:\jenkins_workspace\workspace\SimGame_Windows\game\Assets\scripts\game\InterfaceTools\InterfaceTool.cs:49
at PlayerController.ActivateTool (InterfaceTool tool) [0x00041] in C:\jenkins_workspace\workspace\SimGame_Windows\game\Assets\scripts\game\PlayerController.cs:140
at ToolMenu.ChooseTool (ToolMenu+ToolInfo tool) [0x000c6] in C:\jenkins_workspace\workspace\SimGame_Windows\game\Assets\scripts\screens\ToolMenu.cs:464
at ToolMenu.OpenOrCloseCollectionsInRow (System.Collections.Generic.IList1[T] row, System.Boolean autoSelectTool) [0x00060] in C:\jenkins_workspace\workspace\SimGame_Windows\game\Assets\scripts\screens\ToolMenu.cs:581 at ToolMenu.<ChooseCollection>b__60_0 (System.Collections.Generic.List1[T] row) [0x00000] in C:\jenkins_workspace\workspace\SimGame_Windows\game\Assets\scripts\screens\ToolMenu.cs:567
at System.Collections.Generic.List1[T].ForEach (System.Action1[T] action) [0x00024] in <9577ac7a62ef43179789031239ba8798>:0
at ToolMenu.ChooseCollection (ToolMenu+ToolCollection collection, System.Boolean autoSelectTool) [0x000a3] in C:\jenkins_workspace\workspace\SimGame_Windows\game\Assets\scripts\screens\ToolMenu.cs:567
at ToolMenu+<>c__DisplayClass56_0.b__0 () [0x00052] in C:\jenkins_workspace\workspace\SimGame_Windows\game\Assets\scripts\screens\ToolMenu.cs:365
at Util.Signal (System.Action action) [0x0000a] in C:\jenkins_workspace\workspace\SimGame_Windows\game\Assets\Plugins\Klei\util\Util.cs:532
at KToggle.Click () [0x000df] in C:\jenkins_workspace\workspace\SimGame_Windows\game\Assets\Plugins\Klei\ui\KToggle.cs:79
at KToggle.OnPointerClick (UnityEngine.EventSystems.PointerEventData eventData) [0x00048] in C:\jenkins_workspace\workspace\SimGame_Windows\game\Assets\Plugins\Klei\ui\KToggle.cs:123
at UnityEngine.EventSystems.ExecuteEvents.Execute (UnityEngine.EventSystems.IPointerClickHandler handler, UnityEngine.EventSystems.BaseEventData eventData) [0x00001] in C:\Program Files\Unity\Hub\Editor\2019.4.14f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.ugui\Runtime\EventSystem\ExecuteEvents.cs:50
at UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction1[T1] functor) [0x0006c] in C:\Program Files\Unity\Hub\Editor\2019.4.14f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.ugui\Runtime\EventSystem\ExecuteEvents.cs:261 UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object) UnityEngine.DebugLogHandler:LogException(Exception, Object) UnityEngine.Logger:LogException(Exception, Object) UnityEngine.Debug:LogException(Exception) UnityEngine.EventSystems.ExecuteEvents:Execute(GameObject, BaseEventData, EventFunction1) (at C:\Program Files\Unity\Hub\Editor\2019.4.14f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.ugui\Runtime\EventSystem\ExecuteEvents.cs:265)
UnityEngine.EventSystems.StandaloneInputModule:ReleaseMouse(PointerEventData, GameObject) (at C:\Program Files\Unity\Hub\Editor\2019.4.14f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.ugui\Runtime\EventSystem\InputModules\StandaloneInputModule.cs:195)
UnityEngine.EventSystems.StandaloneInputModule:ProcessMousePress(MouseButtonEventData) (at C:\Program Files\Unity\Hub\Editor\2019.4.14f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.ugui\Runtime\EventSystem\InputModules\StandaloneInputModule.cs:644)
UnityEngine.EventSystems.StandaloneInputModule:ProcessMouseEvent(Int32) (at C:\Program Files\Unity\Hub\Editor\2019.4.14f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.ugui\Runtime\EventSystem\InputModules\StandaloneInputModule.cs:552)
UnityEngine.EventSystems.StandaloneInputModule:ProcessMouseEvent() (at C:\Program Files\Unity\Hub\Editor\2019.4.14f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.ugui\Runtime\EventSystem\InputModules\StandaloneInputModule.cs:532)
UnityEngine.EventSystems.StandaloneInputModule:Process() (at C:\Program Files\Unity\Hub\Editor\2019.4.14f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.ugui\Runtime\EventSystem\InputModules\StandaloneInputModule.cs:289)
UnityEngine.EventSystems.EventSystem:Update() (at C:\Program Files\Unity\Hub\Editor\2019.4.14f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.ugui\Runtime\EventSystem\EventSystem.cs:377)
NullReferenceException: Object reference not set to an instance of an object
at DiseaseContainers.UpdateOverlayColours () [0x00117] in C:\jenkins_workspace\workspace\SimGame_Windows\game\Assets\scripts\game\DiseaseContainers.cs:334
at Infrared.Update () [0x0002b] in C:\jenkins_workspace\workspace\SimGame_Windows\game\Assets\scripts\rendering\postfx\Infrared.cs:93
NullReferenceException: Object reference not set to an instance of an object
at DiseaseContainers.UpdateOverlayColours () [0x00117] in C:\jenkins_workspace\workspace\SimGame_Windows\game\Assets\scripts\game\DiseaseContainers.cs:334
at Infrared.Update () [0x0002b] in C:\jenkins_workspace\workspace\SimGame_Windows\game\Assets\scripts\rendering\postfx\Infrared.cs:93
NullReferenceException: Object reference not set to an instance of an object
at DiseaseContainers.UpdateOverlayColours () [0x00117] in C:\jenkins_workspace\workspace\SimGame_Windows\game\Assets\scripts\game\DiseaseContainers.cs:334
at Infrared.Update () [0x0002b] in C:\jenkins_workspace\workspace\SimGame_Windows\game\Assets\scripts\rendering\postfx\Infrared.cs:93
Describe the bug If the Ranching Bulletin Board has any germs on it, the game crashes if the germ overlay is triggered on.
To Reproduce Steps to reproduce the behavior:
Debug Logs %AppData%..\LocalLow\Klei\Oxygen Not Included:
Desktop: