[BUG] core.lua:296: attempt to index local 'bar' (a nil value)
JackTrapper opened this issue ยท 4 comments
What steps will reproduce the problem?
What version of ThreatClassic2 are you using? (Stating 'latest' is not useful)
- 2.23
Do you have an error log of what happened?
- Message: Interface\AddOns\ThreatClassic2\core\core.lua:296: attempt to index local 'bar' (a nil value)
- Time: Sun Aug 2 20:31:46 2020
- Count: 2
- Stack:
- Interface\AddOns\ThreatClassic2\core\core.lua:296: attempt to index local 'bar' (a nil value)
- Interface\AddOns\ThreatClassic2\core\core.lua:296: in function `UpdateThreatBars'
- Interface\AddOns\ThreatClassic2\core\core.lua:398: in function <Interface\AddOns\ThreatClassic2\core\core.lua:370>
- Interface\AddOns\ThreatClassic2\core\core.lua:713: in function `?'
- Interface\AddOns\ThreatClassic2\core\core.lua:687: in function <Interface\AddOns\ThreatClassic2\core\core.lua:686>
- Locals:
self
= <table> {colorFallback
= <table> { }partyPetUnits
= <table> { }partyUnits
= <table> { }version
= "2.23"config
= <table> { }menuTable
= <table> { }menu
= ThreatClassic2MenuFrame { }configTable
= <table> { }db
= <table> { }raidUnits
= <table> { }locale
= "enUS"numGroupMembers
= 0defaultConfig
= <table> { }threatData
= <table> { }playerName
= "Redacted"playerTarget
= "target"raidPetUnits
= <table> { }commPrefix
= "TC2"frame
= ThreatClassic2BarFrame { }bars
= <table> { }addonName
= "ThreatClassic2"
playerIncluded
= falsedata
= <table> {isTanking
= truethreatValue
= 3918threatPercent
= 100unit
= "player"
bar
= nil
Any additional information? (example: WoW language if not English) (Attach screenshots here if available, do not link externally)
I configured the bar width, height, and font, to be smaller. I probably slid the sliders to their minimum value by mistake; that's when the error started - even after sliding the sliders back up again the errors continued. The only way to resolve it was to Reset the profile
@JackTrapper All other plug-ins are disabled and tc2 is turned on separately. Does it still report an error?
Thanks for the report. Have to check it out. Looks like a missing safe-guard for an unsupported value. Glad resetting solved the error though.