
Bug when Indicator initialized
ELEMKEP opened this issue ยท 1 comments
Thanks for developing and maintaining the good addon!
I'm writing this issue due to a bug which I have faced frequently. The message from Bugsack is attached below.
I tried to change self.elapsed
to (self.elapsed or 0)
in my local addon code, and it seems to be resolved. It is a very tiny bug so I raised an issue rather than PR.
Thanks for your assistance! :)
74x Cell/Indicators/Base.lua:102: attempt to perform arithmetic on field 'elapsed' (a nil value)
[Cell/Indicators/Base.lua]:102: in function <Cell/Indicators/Base.lua:101>Locals:
{
self = StatusBar {
spark = Texture {
}
PixelSnapDisabled = true
points =
}
icon = Texture {
}
}
elapsed = 0.016000
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to perform arithmetic on field 'elapsed' (a nil value)"