Closed ghost closed 5 months ago
AllowTool.Designator_HaulUrgently.ThingIsRelevant does not check if Thing has a null map... Could be fixed by either using Thing.MapHeld or checking for Thing.Map != null beforehand
I also get this error repeatedly. I've had to disable Haul Urgently completely because of the near constant red error popups.
System.NullReferenceException: Object reference not set to an instance of an object
at Verse.GridsUtility.Fogged (Verse.IntVec3 c, Verse.Map map) [0x00000] in <446267b72ea8432286db63aecc70cf59>:0
at AllowTool.Designator_HaulUrgently.ThingIsRelevant (Verse.Thing thing) [0x00015] in 1<object>,Verse.Gizmo&) currentSelectable: null UnityEngine.StackTraceUtility:ExtractStackTrace () Verse.Log:Error (string) Verse.Log:ErrorOnce (string,int) (wrapper dynamic-method) RimWorld.InspectGizmoGrid:RimWorld.InspectGizmoGrid.DrawInspectGizmoGridFor_Patch0 (System.Collections.Generic.IEnumerable
1
System.NullReferenceException: Object reference not set to an instance of an object at Verse.GridsUtility.Fogged (Verse.IntVec3 c, Verse.Map map) [0x00000] in <8c412d4a16f94d4cb337e846f2dee469>:0 at AllowTool.Designator_HaulUrgently.ThingIsRelevant (Verse.Thing thing) [0x00015] in:0
at AllowTool.Designator_HaulUrgently.CanDesignateThing (Verse.Thing t) [0x00001] in :0
at (wrapper dynamic-method) Verse.Designator.Verse.Designator.CreateReverseDesignationGizmo_Patch1(Verse.Designator,Verse.Thing)
at (wrapper dynamic-method) RimWorld.InspectGizmoGrid.RimWorld.InspectGizmoGrid.DrawInspectGizmoGridFor_Patch0(System.Collections.Generic.IEnumerable
1<object>,Verse.Gizmo&) currentSelectable: null UnityEngine.StackTraceUtility:ExtractStackTrace () (wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch1 (string) Verse.Log:ErrorOnce (string,int) (wrapper dynamic-method) RimWorld.InspectGizmoGrid:RimWorld.InspectGizmoGrid.DrawInspectGizmoGridFor_Patch0 (System.Collections.Generic.IEnumerable
1