blish-hud / Pathing

[Module] The official pathing module which adds marker and trail support to Blish HUD.
https://blishhud.com/docs/markers/
MIT License
12 stars 10 forks source link

Crash if marker is missing type #46

Closed dlamkins closed 2 years ago

dlamkins commented 2 years ago

06:49:42.6547 | FATAL | Blish_HUD.DebugService | Blish HUD encountered a fatal crash! System.AggregateException: One or more errors occurred. ---> System.NullReferenceException: Object reference not set to an instance of an object. at BhModule.Community.Pathing.Entity.StandardMarker..ctor(IPackState packState, IPointOfInterest pointOfInterest) in C:\Users\dade\source\repos\Pathing\Entity\StandardMarker.cs:line 16 at BhModule.Community.Pathing.SharedPackState.BuildEntity(IPointOfInterest pointOfInterest) in C:\Users\dade\source\repos\Pathing\State\SharedPackState.cs:line 70 at System.Linq.Parallel.PartitionedDataSource1.ListContiguousIndexRangeEnumerator.MoveNext(T& currentElement, Int32& currentKey) at System.Linq.Parallel.ForAllOperator1.ForAllEnumerator1.MoveNext(TInput& currentElement, Int32& currentKey) at System.Linq.Parallel.ForAllSpoolingTask2.SpoolingWork() at System.Linq.Parallel.SpoolingTaskBase.Work() at System.Linq.Parallel.QueryTask.BaseWork(Object unused) at System.Threading.Tasks.Task.Execute() --- End of inner exception stack trace --- ---> (Inner Exception #0) System.NullReferenceException: Object reference not set to an instance of an object. at BhModule.Community.Pathing.Entity.StandardMarker..ctor(IPackState packState, IPointOfInterest pointOfInterest) in C:\Users\dade\source\repos\Pathing\Entity\StandardMarker.cs:line 16 at BhModule.Community.Pathing.SharedPackState.BuildEntity(IPointOfInterest pointOfInterest) in C:\Users\dade\source\repos\Pathing\State\SharedPackState.cs:line 70 at System.Linq.Parallel.PartitionedDataSource1.ListContiguousIndexRangeEnumerator.MoveNext(T& currentElement, Int32& currentKey) at System.Linq.Parallel.ForAllOperator1.ForAllEnumerator1.MoveNext(TInput& currentElement, Int32& currentKey) at System.Linq.Parallel.ForAllSpoolingTask2.SpoolingWork() at System.Linq.Parallel.SpoolingTaskBase.Work() at System.Linq.Parallel.QueryTask.BaseWork(Object unused) at System.Threading.Tasks.Task.Execute()<---

dlamkins commented 2 years ago

This is now fixed and will be included in the next prerelease build of the module.