simplyWiri / Loadout-Compositing

GNU Lesser General Public License v3.0
12 stars 8 forks source link

CL0606 Update - System.NullReferenceException #86

Closed GitWolf22k closed 5 months ago

GitWolf22k commented 5 months ago

[Mod list length: 6] Harmony [https://steamcommunity.com/sharedfiles/filedetails/?id=2009463077] Core [https:// no link (local mod)] Royalty [Official DLC] [https:// no link (local mod)] Ideology [Official DLC] [https:// no link (local mod)] Biotech [Official DLC] [https:// no link (local mod)] Compositable Loadouts [https://steamcommunity.com/sharedfiles/filedetails/?id=2679126859]

Error System.NullReferenceException: Object reference not set to an instance of an object [Ref 4A4DB774] at Inventory.Utility.IsValidLoadoutHolder (Verse.Pawn pawn) [0x00001] in <49fbc18154804f2e8f1171108c0b8c9a>:0 at Inventory.LoadoutComponent+d5.MoveNext () [0x0003c] in <49fbc18154804f2e8f1171108c0b8c9a>:0 at Verse.ThingWithComps+d35.MoveNext () [0x000f3] in :0 at Verse.Corpse+d__55.MoveNext () [0x0007a] in :0 at System.Collections.Generic.List1[T].InsertRange (System.Int32 index, System.Collections.Generic.IEnumerable1[T] collection) [0x000db] in :0 at System.Collections.Generic.List1[T].AddRange (System.Collections.Generic.IEnumerable1[T] collection) [0x00000] in :0 at RimWorld.InspectGizmoGrid.DrawInspectGizmoGridFor (System.Collections.Generic.IEnumerable1[T] selectedObjects, Verse.Gizmo& mouseoverGizmo) [0x000d9] in <f0ac5eb9b52e4cc396c70fc9a4ee15e5>:0 currentSelectable: null UnityEngine.StackTraceUtility:ExtractStackTrace () Verse.Log:Error (string) Verse.Log:ErrorOnce (string,int) RimWorld.InspectGizmoGrid:DrawInspectGizmoGridFor (System.Collections.Generic.IEnumerable1,Verse.Gizmo&) RimWorld.MainTabWindow_Inspect:DrawInspectGizmos () RimWorld.InspectPaneUtility:ExtraOnGUI (RimWorld.IInspectPane) RimWorld.MainTabWindow_Inspect:ExtraOnGUI () Verse.WindowStack:WindowStackOnGUI () RimWorld.UIRoot_Play:UIRootOnGUI () Verse.Root:OnGUI ()

Throws the error but everything functions fine. It may be causing serious issues with larger lists though as the action UIs for dead pawns are missing.

simplyWiri commented 5 months ago

Thanks, taking a look at this.