BelegCufea / PrettyReputation

Simple addon to modify reputation gain messages
https://www.curseforge.com/wow/addons/pretty-reputation
GNU General Public License v3.0
4 stars 0 forks source link

Lua errors on changing colours #5

Closed filliph closed 1 year ago

filliph commented 1 year ago

When I changed the colour drop-down to "Blizzard", the following two Lua errors appeared and the drop-down is now gone.

image

1x PrettyReputation/bars.lua:182: attempt to index local 'color' (a nil value)
[string "@PrettyReputation/bars.lua"]:182: in function `Update'
[string "@PrettyReputation/core.lua"]:408: in function `UpdateBars'
[string "@PrettyReputation/config.lua"]:138: in function <PrettyReputation/config.lua:136>
[string "@PrettyReputation/config.lua"]:905: in function <PrettyReputation/config.lua:903>
[string "=[C]"]: ?
[string "@BetterWardrobe/Libs/AceConfig-3.0-3/AceConfigDialog-3.0-86/AceConfigDialog-3.0.lua"]:45: in function <...nfig-3.0/AceConfigDialog-3.0/AceConfigDialog-3.0.lua:43>
[string "@BetterWardrobe/Libs/AceConfig-3.0-3/AceConfigDialog-3.0-86/AceConfigDialog-3.0.lua"]:836: in function <...nfig-3.0/AceConfigDialog-3.0/AceConfigDialog-3.0.lua:658>
[string "=[C]"]: ?
[string "@Altoholic/Libs/AceGUI-3.0-41/AceGUI-3.0.lua"]:66: in function <...faceAltoholic/Libs/AceGUI-3.0/AceGUI-3.0.lua:64>
[string "@Altoholic/Libs/AceGUI-3.0-41/AceGUI-3.0.lua"]:300: in function `Fire'
[string "@Altoholic/Libs/AceGUI-3.0-41/widgets/AceGUIWidget-DropDown.lua"]:432: in function <...ic/Libs/AceGUI-3.0/widgets/AceGUIWidget-DropDown.lua:423>
[string "=[C]"]: ?
[string "@Altoholic/Libs/AceGUI-3.0-41/AceGUI-3.0.lua"]:66: in function <...faceAltoholic/Libs/AceGUI-3.0/AceGUI-3.0.lua:64>
[string "@Altoholic/Libs/AceGUI-3.0-41/AceGUI-3.0.lua"]:300: in function `Fire'
[string "@Altoholic/Libs/AceGUI-3.0-41/widgets/AceGUIWidget-DropDown-Items.lua"]:351: in function <...s/AceGUI-3.0/widgets/AceGUIWidget-DropDown-Items.lua:341>
1x PrettyReputation/bars.lua:182: attempt to index local 'color' (a nil value)
[string "@PrettyReputation/bars.lua"]:182: in function `Update'
[string "@PrettyReputation/core.lua"]:408: in function `UpdateBars'
[string "@PrettyReputation/config.lua"]:138: in function <PrettyReputation/config.lua:136>
[string "@PrettyReputation/config.lua"]:905: in function <PrettyReputation/config.lua:903>
[string "=[C]"]: ?
[string "@BetterWardrobe/Libs/AceConfig-3.0-3/AceConfigDialog-3.0-86/AceConfigDialog-3.0.lua"]:45: in function <...nfig-3.0/AceConfigDialog-3.0/AceConfigDialog-3.0.lua:43>
[string "@BetterWardrobe/Libs/AceConfig-3.0-3/AceConfigDialog-3.0-86/AceConfigDialog-3.0.lua"]:836: in function <...nfig-3.0/AceConfigDialog-3.0/AceConfigDialog-3.0.lua:658>
[string "=[C]"]: ?
[string "@Altoholic/Libs/AceGUI-3.0-41/AceGUI-3.0.lua"]:66: in function <...faceAltoholic/Libs/AceGUI-3.0/AceGUI-3.0.lua:64>
[string "@Altoholic/Libs/AceGUI-3.0-41/AceGUI-3.0.lua"]:300: in function `Fire'
[string "@Altoholic/Libs/AceGUI-3.0-41/widgets/AceGUIWidget-DropDown.lua"]:432: in function <...ic/Libs/AceGUI-3.0/widgets/AceGUIWidget-DropDown.lua:423>
[string "=[C]"]: ?
[string "@Altoholic/Libs/AceGUI-3.0-41/AceGUI-3.0.lua"]:66: in function <...faceAltoholic/Libs/AceGUI-3.0/AceGUI-3.0.lua:64>
[string "@Altoholic/Libs/AceGUI-3.0-41/AceGUI-3.0.lua"]:300: in function `Fire'
[string "@Altoholic/Libs/AceGUI-3.0-41/widgets/AceGUIWidget-DropDown-Items.lua"]:351: in function <...s/AceGUI-3.0/widgets/AceGUIWidget-DropDown-Items.lua:341>
filliph commented 1 year ago

A /reload later and the drop-down is back, at least 😄

BelegCufea commented 1 year ago

Thanks for reporting.

Will look into it.