The 2 lines where this addon is generating the "attempt to index a nil value" error are:
FooAddonIndicator:SetHidden(not inCombat)
(in function FooAddon.OnPlayerCombatState(event, inCombat))
FooAddonIndicator:ClearAnchors()
(in function FooAddon.RestorePosition())
so it's almost like the indicator UI component hasn't yet been initialised at that point, but I don't know what could cause that.
|