fluffy-mods / ColonyManager

Colony manager for RimWorld
Other
72 stars 38 forks source link

Exception when clicking on "Hunting" #83

Closed Mythos closed 7 years ago

Mythos commented 7 years ago

Hey there,

with the latest update (from 10th June 17) I'm getting following exception when I click on "Hunting" in the "Manager" tab.

Exception filling window for FluffyManager.MainTabWindow_Manager: System.NullReferenceException: Object reference not set to an instance of an object
  at FluffyManager.ManagerJob_Hunting+<>c.<UpdateAllowedAnimals>b__50_0 (Verse.Pawn p) [0x00000] in <filename unknown>:0 
  at System.Linq.Enumerable+<CreateWhereIterator>c__Iterator1D`1[Verse.Pawn].MoveNext () [0x00000] in <filename unknown>:0 
  at System.Linq.Enumerable+<CreateSelectIterator>c__Iterator10`2[Verse.Pawn,Verse.PawnKindDef].MoveNext () [0x00000] in <filename unknown>:0 
  at System.Linq.Enumerable+<CreateConcatIterator>c__Iterator1`1[Verse.PawnKindDef].MoveNext () [0x00000] in <filename unknown>:0 
  at System.Linq.Enumerable+<CreateDistinctIterator>c__Iterator3`1[Verse.PawnKindDef].MoveNext () [0x00000] in <filename unknown>:0 
  at System.Collections.Generic.List`1[Verse.PawnKindDef].AddEnumerable (IEnumerable`1 enumerable) [0x00000] in <filename unknown>:0 
  at System.Collections.Generic.List`1[Verse.PawnKindDef]..ctor (IEnumerable`1 collection) [0x00000] in <filename unknown>:0 
  at System.Linq.Enumerable.ToArray[PawnKindDef] (IEnumerable`1 source) [0x00000] in <filename unknown>:0 
  at System.Linq.QuickSort`1[Verse.PawnKindDef]..ctor (IEnumerable`1 source, System.Linq.SortContext`1 context) [0x00000] in <filename unknown>:0 
  at System.Linq.QuickSort`1+<Sort>c__Iterator21[Verse.PawnKindDef].MoveNext () [0x00000] in <filename unknown>:0 
  at FluffyManager.ManagerJob_Hunting.UpdateAllowedAnimals () [0x00000] in <filename unknown>:0 
  at FluffyManager.ManagerTab_Hunting.Refresh () [0x00000] in <filename unknown>:0 
  at FluffyManager.ManagerTab_Hunting.PreOpen () [0x00000] in <filename unknown>:0 
  at FluffyManager.MainTabWindow_Manager.GoTo (FluffyManager.ManagerTab tab, FluffyManager.ManagerJob job) [0x00000] in <filename unknown>:0 
  at FluffyManager.MainTabWindow_Manager.DrawTabIcon (Rect rect, FluffyManager.ManagerTab tab) [0x00000] in <filename unknown>:0 
  at FluffyManager.MainTabWindow_Manager.DoWindowContents (Rect canvas) [0x00000] in <filename unknown>:0 
  at Verse.Window+<WindowOnGUI>c__AnonStorey2C4.<>m__1B1 (Int32 x) [0x00000] in <filename unknown>:0 
Verse.Log:Error(String)
Verse.<WindowOnGUI>c__AnonStorey2C4:<>m__1B1(Int32)
UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, GUISkin, Int32, Single, Single, GUIStyle)

PS: I don't have a manager desk yet. Also this happens on an existing save.

FluffierThanThou commented 7 years ago

I've just pushed a minor update that should hopefully fix this. If it doesn't, could you supply a full output_log please?

Mythos commented 7 years ago

Thanks, that fixed it for me!