scoreColor missing sometimes
DennisRas opened this issue ยท 0 comments
Apparently this function doesn't always return a value, so make a check for the scoreColor actually existing at that point or ignore it if it returns nil
Line 1319 in 42a33bd
Message: Interface/AddOns/AlterEgo/Interface.lua:1383: attempt to index local 'scoreColor' (a nil value)
Time: Wed Nov 15 12:46:33 2023
Count: 1
Stack: Interface/AddOns/AlterEgo/Interface.lua:1383: attempt to index local 'scoreColor' (a nil value)
[string "@Interface/AddOns/AlterEgo/Interface.lua"]:1383: in function `UpdateUI'
[string "@Interface/AddOns/AlterEgo/Database.lua"]:431: in function <Interface/AddOns/AlterEgo/Database.lua:373>
[string "=[C]"]: ?
[string "@Interface/AddOns/AlterEgo/Libs/AceBucket-3.0/AceBucket-3.0.lua"]:69: in function <...AddOns/AlterEgo/Libs/AceBucket-3.0/AceBucket-3.0.lua:67>
[string "@Interface/AddOns/AlterEgo/Libs/AceBucket-3.0/AceBucket-3.0.lua"]:83: in function `func'
[string "@Interface/AddOns/AlterEgo/Libs/AceTimer-3.0/AceTimer-3.0.lua"]:57: in function <...e/AddOns/AlterEgo/Libs/AceTimer-3.0/AceTimer-3.0.lua:50>
Locals: self = <table> {
SetDefaultModuleLibraries = <function> defined @Interface/AddOns/AlterEgo/Libs/AceAddon-3.0/AceAddon-3.0.lua:363
HideCharacterColumns = <function> defined @Interface/AddOns/AlterEgo/Interface.lua:629
EnableModule = <function> defined @Interface/AddOns/AlterEgo/Libs/AceAddon-3.0/AceAddon-3.0.lua:328
modules = <table> {
}
CancelTimer = <function> defined @Interface/AddOns/AlterEgo/Libs/AceTimer-3.0/AceTimer-3.0.lua:147
IterateEmbeds = <function> defined @Interface/AddOns/AlterEgo/Libs/AceAddon-3.0/AceAddon-3.0.lua:438
GetAffixes = <function> defined @Interface/AddOns/AlterEgo/Database.lua:215
IsScrollbarNeeded = <function> defined @Interface/AddOns/AlterEgo/Interface.lua:648
Printf = <function> defined @Interface/AddOns/AlterEgo/Libs/AceConsole-3.0/AceConsole-3.0.lua:65
UpdateUI = <function> defined @Interface/AddOns/AlterEgo/Interface.lua:1151
SetDefaultModulePrototype = <function> defined @Interface/AddOns/AlterEgo/Libs/AceAddon-3.0/AceAddon-3.0.lua:405
GetWindowSize = <function> defined @Interface/AddOns/AlterEgo/Interface.lua:654
defaultModuleState = true
GetRaidDifficulties = <function> defined @Interface/AddOns/AlterEgo/Database.lua:202
IsEnabled = <function> defined @Interface/AddOns/AlterEgo/Libs/AceAddon-3.0/AceAddon-3.0.lua:447
UpdateRaidInstances = <function> defined @Interface/AddOns/AlterEgo/Database.lua:373
ScheduleTimer = <function> defined @Interface/AddOns/AlterEgo/Libs/AceTimer-3.0/AceTimer-3.0.lua:94
DisableModule = <function> defined @Interface/AddOns/AlterEgo/Libs/AceAddon-3.0/AceAddon-3.0.lua:346
UpdateDB = <function> defined @Interface/AddOns/AlterEgo/Database.lua:310
RegisterMessage = <function> defined @Interface/AddOns/AlterEgo/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:80
UnregisterMessage = <function> defined @Interface/AddOns/AlterEgo/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:143
RegisterBucketEvent = <function> defined @Interface/AddOns/AlterEgo/Libs/AceBucket-3.0/AceBucket-3.0.lua:180
GetMaxWindowWidth = <function> defined @Interface/AddOns/AlterEgo/Interface.lua:644
db = <table> {
}
SetEnabledState = <function> defined @Interface/AddOns/AlterEgo/Libs/AceAddon-3.0/AceAddon-3.0.lua:420
enabledState = true
RegisterEvent = <function> defined @Interface/AddOns/AlterEgo/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:80
GetCharacter = <function> defined @Interface/AddOns/AlterEgo/Database.lua:188
IterateModules = <function> defined @Interface/AddOns/AlterEgo/Libs/AceAddon-3.0/AceAddon-3.0.lua:433
GetDungeons = <function> defined @Interface/AddOns/AlterEgo/Database.lua:228
OnInitialize = <function> defined @Interface/AddOns/AlterEgo/AlterEgo.lua:54
NewModule = <function> defined @Interface/AddOns/AlterEgo/Libs/AceAddon-3.0/AceAddon-3.0.lua:231
TaskWeeklyReset = <function> defined @Interface/AddOns/AlterEgo/Database.lua:319
GetModule = <function> defined @Interface/AddOns/AlterEgo/Libs/AceAddon-3.0/AceAddon-3.0.lua:206
GetSeason = <function> defined @Interface/AddOns/AlterEgo/Database.lua:184
TimeLeft = <function> defined @Interface/AddOns/AlterEgo/Libs/AceTimer-3.0/AceTimer-3.0.lua:1