Kiatra / ChocolateBar

ChocolateBar is a World of Warcraft addons to display plugins in a bar on top or bottom of your screen
https://www.wowace.com/projects/chocolatebar
18 stars 9 forks source link

Lua error - attempt to index local 'dbChar' #17

Closed Slivo-fr closed 1 year ago

Slivo-fr commented 2 years ago

Happens with the last update on classic ERA, last occurrence when I used Hearthstone

1x ChocolateBar\modules\CB_PlayedTime.lua:91: attempt to index local 'dbChar' (a nil value)
[string "@ChocolateBar\modules\CB_PlayedTime.lua"]:91: in function <ChocolateBar\modules\CB_PlayedTime.lua:89>
[string "@ChocolateBar\modules\CB_PlayedTime.lua"]:104: in function `func'
[string "@DataStore\libs\AceTimer-3.0\AceTimer-3.0-17.lua"]:57: in function <DataStore\libs\AceTimer-3.0\AceTimer-3.0.lua:50>
Kiatra commented 1 year ago

Should be fixed. Let me know if you still have the issue with the current version.

Slivo-fr commented 1 year ago

Thanks ! This error is gone, but ....

1x Interface\AddOns\ChocolateBar\Jostle2.lua:151: attempt to call global 'UnitHasVehicleUI' (a nil value)
[string "@Interface\AddOns\ChocolateBar\Jostle2.lua"]:151: in function `Refresh'
[string "@Interface\AddOns\ChocolateBar\Jostle2.lua"]:35: in function <Interface\AddOns\ChocolateBar\Jostle2.lua:33>
Kiatra commented 1 year ago

I guess you get this in classic. Should be fixed in v3.9.7 Edit: Hmm actually Jostle2 is not used in classic, strange. I did not get that error in classic or retail.

Slivo-fr commented 1 year ago

Yes it's on classic ERA like the previous error, I'm only playing ERA on my end

Slivo-fr commented 1 year ago

Just tried again with the latest update released 6h ago, no more errors ! :)