[Bug] Occasionally, Window Fails to Fill, Spamming Stack Trace Instead
When it happens, the main view renders only a couple pawns (presumably until it hits the error row) and then suddenly renders no more pawns.
It happens on the GUI thread, so it spams the below stack trace error a bajillion times per second until the window is closed.
Exception filling window for kNumbers.MainTabWindow_Numbers: System.NullReferenceException: Object reference not set to an instance of an object
at kNumbers.MainTabWindow_Numbers+<>c.<UpdatePawnList>b__30_35 (Verse.ThingWithComps p) [0x00000] in <filename unknown>:0
at System.Linq.SortSequenceContext`2[Verse.ThingWithComps,System.String].Initialize (Verse.ThingWithComps[] elements) [0x00000] in <filename unknown>:0
at System.Linq.QuickSort`1[Verse.ThingWithComps].PerformSort () [0x00000] in <filename unknown>:0
at System.Linq.QuickSort`1+<Sort>c__Iterator21[Verse.ThingWithComps].MoveNext () [0x00000] in <filename unknown>:0
at System.Collections.Generic.List`1[Verse.ThingWithComps].AddEnumerable (IEnumerable`1 enumerable) [0x00000] in <filename unknown>:0
at System.Collections.Generic.List`1[Verse.ThingWithComps]..ctor (IEnumerable`1 collection) [0x00000] in <filename unknown>:0
at System.Linq.Enumerable.ToList[ThingWithComps] (IEnumerable`1 source) [0x00000] in <filename unknown>:0
at kNumbers.MainTabWindow_Numbers.UpdatePawnList () [0x00000] in <filename unknown>:0
at kNumbers.MainTabWindow_Numbers.DoWindowContents (Rect r) [0x00000] in <filename unknown>:0
at HugsLib.GuiInject.WindowDetour+<>c__DisplayClass1.<_WindowOnGUI>b__0 (Int32 x) [0x00000] in <filename unknown>:0
Verse.Log:Error(String)
HugsLib.GuiInject.<>c__DisplayClass1:<_WindowOnGUI>b__0(Int32)
UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, GUISkin, Int32, Single, Single, GUIStyle)
[Bug] Occasionally, Window Fails to Fill, Spamming Stack Trace Instead
When it happens, the main view renders only a couple pawns (presumably until it hits the error row) and then suddenly renders no more pawns.
It happens on the GUI thread, so it spams the below stack trace error a bajillion times per second until the window is closed.