RatingSummary not available during addon load
DennisRas opened this issue ยท 0 comments
Getting the player rating summary on addon load causes an error.
Line: https://github.com/DennisRas/AlterEgo/blob/main/AlterEgo.lua#L141
Message: Interface/AddOns/AlterEgo/AlterEgo.lua:155: attempt to index local 'ratingSummary' (a nil value)
Time: Sat Oct 21 00:26:31 2023
Count: 1
Stack: Interface/AddOns/AlterEgo/AlterEgo.lua:155: attempt to index local 'ratingSummary' (a nil value)
[string "@Interface/AddOns/AlterEgo/AlterEgo.lua"]:155: in function `UpdateCharacter'
[string "@Interface/AddOns/AlterEgo/AlterEgo.lua"]:117: in function <Interface/AddOns/AlterEgo/AlterEgo.lua:104>
[string "=[C]"]: ?
[string "@Interface/AddOns/AlterEgo/Libs/AceAddon-3.0/AceAddon-3.0.lua"]:66: in function <...e/AddOns/AlterEgo/Libs/AceAddon-3.0/AceAddon-3.0.lua:61>
[string "@Interface/AddOns/AlterEgo/Libs/AceAddon-3.0/AceAddon-3.0.lua"]:494: in function `InitializeAddon'
[string "@Interface/AddOns/AlterEgo/Libs/AceAddon-3.0/AceAddon-3.0.lua"]:619: in function <...e/AddOns/AlterEgo/Libs/AceAddon-3.0/AceAddon-3.0.lua:611>
Locals: self = <table> {
SetDefaultModuleLibraries = <function> defined @Interface/AddOns/AlterEgo/Libs/AceAddon-3.0/AceAddon-3.0.lua:363
OnSlashCommand = <function> defined @Interface/AddOns/AlterEgo/AlterEgo.lua:121
Enable = <function> defined @Interface/AddOns/AlterEgo/Libs/AceAddon-3.0/AceAddon-3.0.lua:290
RegisterChatCommand = <function> defined @Interface/AddOns/AlterEgo/Libs/AceConsole-3.0/AceConsole-3.0.lua:81
EnableModule = <function> defined @Interface/AddOns/AlterEgo/Libs/AceAddon-3.0/AceAddon-3.0.lua:328
modules = <table> {
}
GetModule = <function> defined @Interface/AddOns/AlterEgo/Libs/AceAddon-3.0/AceAddon-3.0.lua:206
IterateEmbeds = <function> defined @Interface/AddOns/AlterEgo/Libs/AceAddon-3.0/AceAddon-3.0.lua:438
defaultModuleLibraries = <table> {
}
UnregisterChatCommand = <function> defined @Interface/AddOns/AlterEgo/Libs/AceConsole-3.0/AceConsole-3.0.lua:107
Printf = <function> defined @Interface/AddOns/AlterEgo/Libs/AceConsole-3.0/AceConsole-3.0.lua:65
UpdateUI = <function> defined @Interface/AddOns/AlterEgo/AlterEgo.lua:734
SetDefaultModulePrototype = <function> defined @Interface/AddOns/AlterEgo/Libs/AceAddon-3.0/AceAddon-3.0.lua:405
name = "AlterEgo"
IsEnabled = <function> defined @Interface/AddOns/AlterEgo/Libs/AceAddon-3.0/AceAddon-3.0.lua:447
orderedModules = <table> {
}
DisableModule = <function> defined @Interface/AddOns/AlterEgo/Libs/AceAddon-3.0/AceAddon-3.0.lua:346
UnregisterAllEvents = <function> defined @Interface/AddOns/AlterEgo/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:164
RegisterMessage = <function> defined @Interface/AddOns/AlterEgo/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:80
GetArgs = <function> defined @Interface/AddOns/AlterEgo/Libs/AceConsole-3.0/AceConsole-3.0.lua:140
Print = <function> defined @Interface/AddOns/AlterEgo/Libs/AceConsole-3.0/AceConsole-3.0.lua:50
baseName = "AlterEgo"
CreateUI = <function> defined @Interface/AddOns/AlterEgo/AlterEgo.lua:296
GetName = <function> defined @Interface/AddOns/AlterEgo/Libs/AceAddon-3.0/AceAddon-3.0.lua:275
UnregisterMessage = <function> defined @Interface/AddOns/AlterEgo/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:143
IsModule = <function> defined @Interface/AddOns/AlterEgo/Libs/AceAddon-3.0/AceAddon-3.0.lua:464
db = <table> {
}
SetDefaultModuleState = <function> defined @Interface/AddOns/AlterEgo/Libs/AceAddon-3.0/AceAddon-3.0.lua:383
OnInitialize = <function> defined @Interface/AddOns/AlterEgo/AlterEgo.lua:104
UnregisterBucket = <function> defined @Interface/AddOns/AlterEgo/Libs/AceBucket-3.0/AceBucket-3.0.lua:202
SetEnabledState = <function> defined @Interface/AddOns/AlterEgo/Libs/AceAddon-3.0/AceAddon-3.0.lua:420
UnregisterAllBuckets = <function> defined @Interface/AddOns/AlterEgo/Libs/AceBucket-3.0/AceBucket-3.0.lua:225
enabledState = true
RegisterBucketMessage = <function> defined @Interface/AddOns/AlterEgo/Libs/AceBucket-3.0/AceBucket-3.0.lua:196
RegisterEvent = <function> defined @Interface/AddOns/AlterEgo/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:80
UnregisterAllMessages = <function> defined @Interface/