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

Empty script-* function arguments throws an exception. #84

Closed dlamkins closed 1 year ago

dlamkins commented 1 year ago
[12/29/2022 1:42:02 PM | unknown] Can not call nil value during execution on or around line 0 in ''.

and stacktrace:

System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at BhModule.Community.Pathing.Behavior.Script.GetValueFromString(String value) in C:\BhApps\BhudRequestFor\work\X9MTOEsOzU2nGFtzofBhFA\Behavior\Script.cs:line 77
   at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
   at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
   at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
   at BhModule.Community.Pathing.Behavior.Script.SplitFunc(String func) in C:\BhApps\BhudRequestFor\work\X9MTOEsOzU2nGFtzofBhFA\Behavior\Script.cs:line 127
   at BhModule.Community.Pathing.Behavior.Script..ctor(String tickFunc, String focusFunc, String triggerFunc, String filterFunc, String onceFunc, StandardMarker marker) in C:\BhApps\BhudRequestFor\work\X9MTOEsOzU2nGFtzofBhFA\Behavior\Script.cs:line 31
   at BhModule.Community.Pathing.Behavior.Script.BuildFromAttributes(AttributeCollection attributes, StandardMarker marker) in C:\BhApps\BhudRequestFor\work\X9MTOEsOzU2nGFtzofBhFA\Behavior\Script.cs:line 38

Attempting to reload again gets us locked in a reloading state. This should also be reviewed.