Guildbook

Guildbook

860k Downloads

Attempt to index field 'profile' (a nil value)

Duranom opened this issue ยท 1 comments

commented

Addon Version: 5.56

Game Version: Wotlk classic

Description
When certain people in the guild log on or off, think profiles are not fully properly initialized in cases and/or received.
Happens since pre-patch it seems according to some people, and still happens.
A clear guildbook has no effect as it can still occur

Other guild version differ?
Yes and no

Exception:

Message: Interface\AddOns\Guildbook\Character.lua:310: attempt to index field 'profile' (a nil value)
Time: Sun Oct  2 21:41:31 2022
Count: 2
Stack: Interface\AddOns\Guildbook\Character.lua:310: attempt to index field 'profile' (a nil value)
[string "@Interface\AddOns\Guildbook\Character.lua"]:310: in function `SetProfileName'
[string "@Interface\AddOns\Guildbook\GuildbookMixin.lua"]:1496: in function <Interface\AddOns\Guildbook\GuildbookMixin.lua:1403>
[string "=[C]"]: ?
[string "@Interface\SharedXML\CallbackRegistry.lua"]:118: in function <Interface\SharedXML\CallbackRegistry.lua:117>
[string "=[C]"]: ?
[string "@Interface\SharedXML\CallbackRegistry.lua"]:121: in function `TriggerEvent'
[string "@Interface\AddOns\Guildbook\Comms.lua"]:277: in function `ProcessIncomingData'
[string "@Interface\AddOns\Guildbook\Comms.lua"]:271: in function <Interface\AddOns\Guildbook\Comms.lua:270>

Locals: self = <table> {
 SetTalents = <function> defined @Interface\AddOns\Guildbook\Character.lua:349
 GetData = <function> defined @Interface\AddOns\Guildbook\Character.lua:621
 GetLevel = <function> defined @Interface\AddOns\Guildbook\Character.lua:76
 ResetData = <function> defined @Interface\AddOns\Guildbook\Character.lua:659
 SetMainCharacter = <function> defined @Interface\AddOns\Guildbook\Character.lua:418
 GetMainCharacter = <function> defined @Interface\AddOns\Guildbook\Character.lua:422
 GetTradeskillSpec = <function> defined @Interface\AddOns\Guildbook\Character.lua:201
 SetTradeskillLevel = <function> defined @Interface\AddOns\Guildbook\Character.lua:176
 SetTradeskillSpec = <function> defined @Interface\AddOns\Guildbook\Character.lua:193
 SetData = <function> defined @Interface\AddOns\Guildbook\Character.lua:563
 CanCraftItem = <function> defined @Interface\AddOns\Guildbook\Character.lua:236
 data = <table> {
 }
 GetRace = <function> defined @Interface\AddOns\Guildbook\Character.lua:85
 SetClass = <function> defined @Interface\AddOns\Guildbook\Character.lua:90
 SetFishingLevel = <function> defined @Interface\AddOns\Guildbook\Character.lua:279
 GetProfile = <function> defined @Interface\AddOns\Guildbook\Character.lua:333
 GetProfileDob = <function> defined @Interface\AddOns\Guildbook\Character.lua:301
 SetProfileDob = <function> defined @Interface\AddOns\Guildbook\Character.lua:297
 GetClass = <function> defined @Interface\AddOns\Guildbook\Character.lua:94
 GetFishingLevel = <function> defined @Interface\AddOns\Guildbook\Character.lua:283
 SetInventory = <function> defined @Interface\AddOns\Guildbook\Character.lua:380
 AddNewAlt = <function> defined @Interface\AddOns\Guildbook\Character.lua:435
 SetTradeskillRecipes = <function> defined @Interface\AddOns\Guildbook\Character.lua:210
 GetOnlineStatus = <function> defined @Interface\AddOns\Guildbook\Character.lua:58
 GetClassSpecAtlasName = <function> defined @Interface\AddOns\Guildbook\Character.lua:451
 GetCookingLevel = <function> defined @Interface\AddOns\Guildbook\Character.lua:274
 GetGlyphs = <function> defined @Interface\AddOns\Guildbook\Character.lua:373
 GetInventory = <function> defined @Interface\AddOns\Guildbook\Character.lua:384
 SetSpec = <function> defined @Interface\AddOns\Guildbook\Character.lua:121
 GetTradeskillRecipes = <function> defined @Interface\AddOns\Guildbook\Character.lua:218
 New = <function> defined @Interface\AddOns\Guildbook\Character.lua:732
 GetFirstAidLevel = <function> defined @Interface\AddOns\Guildbook\Character.lua:292
 GetGuid = <function> defined @Interface\AddOns\Guildbook\Character.lua:45
 RemoveAlt = <function> defined @Interface\AddOns\Guildbook\Character.lua:439
 GetName = <function> defined @Interface\AddOns\Guildbook\Character.lua:67
 GetSpec = <function> defined @Interface\AddOns\Guildbook\Character.lua:130
 SetCookingLevel = <function> defined @Interface\AddOns\Guildbook\Character.lua:270
 SetGuid = <function> defined @Interface\AddOns\Guildbook\Character.lua:49
 SetGender = <function> defined @Interface\AddOns\Guildbook\Character.lua:99
commented

Hi, sorry for the delay, i've add a an extra bit of code to just set profile to an empty table if it didnt exist during character init, will be in the next upload along with a few other bits