Guildbook

Guildbook

860k Downloads

Another lua error with 2.5.2

b-morgan opened this issue ยท 1 comments

commented
38x Guildbook\Core.lua:1208: attempt to index local 'guid' (a nil value)
[string "@Guildbook\Core.lua"]:1208: in function `GetCharacterFromCache'
[string "@Guildbook\Core.lua"]:2803: in function <Guildbook\Core.lua:2798>

Locals:
self = <table> {
 SendGuildCalendarEventDeleted = <function> defined @Guildbook\Core.lua:3161
 DebugColours = <table> {
 }
 OnProfileRequest = <function> defined @Guildbook\Core.lua:2611
 GetCharacterProfessions = <function> defined @Guildbook\Core.lua:2071
 MinimapCalendarIcon = <table> {
 }
 UnregisterComm = <function> defined @Questie\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:153
 CHAT_MSG_WHISPER = <function> defined @Guildbook\Core.lua:3486
 TRADE_SKILL_UPDATE = <function> defined @Guildbook\Core.lua:3392
 BankRequests = <table> {
 }
 GUILD_INVITE_REQUEST = <function> defined @Guildbook\Core.lua:3776
 ImportGuildTradeskillRecipes = <function> defined @Guildbook\Core.lua:1361
 SKILL_LINES_CHANGED = <function> defined @Guildbook\Core.lua:3384
 SendInventoryRequest = <function> defined @Guildbook\Core.lua:2694
 ADDON_LOADED = <function> defined @Guildbook\Core.lua:3374
 Transmit = <function> defined @Guildbook\Core.lua:2305
 CalendarWorldEvents = <table> {
 }
 scanRosterTicker = <table> {
 }
 RequestGuildBankCommits = <function> defined @Guildbook\Core.lua:2962
 SendCommMessage = <function> defined @Questie\Libs\AceComm-3.0\AceComm-3.0.lua:87
 GetCharacterInventory = <function> defined @Guildbook\Core.lua:2231
 PrintMessage = <function> defined @Guildbook\Core.lua:1420
 UnregisterAllComm = <function> defined @Questie\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:174
 UPDATE_MOUSEOVER_UNIT = <function> defined @Guildbook\Core.lua:3421
 OnTalentInfoReceived = <function> defined @Guildbook\Core.lua:2677
 BANKFRAME_CLOSED = <function> defined @Guildbook\Core.lua:3582
 SendProfileInfo = <function> defined @Guildbook\Core.lua:2590
 ON_COMMS_RECEIVED = <function> defined @Guildbook\Core.lua:3606
 UpdatePlayer = <function> defined @Guildbook\Core.lua:1282
 SetupGuildCalendarFrame = <function> defined @Guildbook\Calendar.lua:33
 SendInventoryInfo = <function> defined @Guildbook\Core.lua:2705
 RequestGuildCalendarEvents = <function> defined @Guildbook\Core.lua:3082
 ScanPlayerBank = <function> defined @Guildbook\Core.lua:1517
 ContextMenu_Separator = "|TInterface/COMMON/UI-TooltipDivider:8:150|t"
 DB_SendCharacterData = <function> defined @Guildbook\Core.lua:2448
 ScanForTradeskillSpec = <function> defined @Guildbook\Core.lua:1648
 SendPrivacyInfo = <function> defined @Guildbook\Core.lua:2489
 OnTradeSkillsRequested = <function> defined @Guildbook\Core.lua:2765
 OnGuildCalendarEventsDeleted = <function> defined @Guildbook\Core.lua:3306
 EquipmentSlots = <table> {
 }
 SendTradeSkillsRequest = <function> defined @Guildbook\Core.lua:2757
 SerializeGuildTradeskillRecipes = <function> defined @Guildbook\Core.lua:1312
 SendVersionData = <function> defined @Guildbook\Core.lua:2383
 IsGuildMemberOnline = <function> defined @Guildbook\Core.lua:2263
 RequestGuildCalendarDeletedEvents = <function> defined @Guildbook\Core.lua:3073
 Colours = <table> {
 }
 ScanPlayerBags = <function> defined @Guildbook\Core.lua:1491
 SendMyCharacterData_Staggered = <function> defined @Guildbook\Core.lua:1259
 ContextMenu_Separator_Wide = "|TInterface/COMMON/UI-TooltipDivider:8:250|t"
 OnTradeSkillsReceived = <function> defined @Guildbook\Core.lua:2795
 RaceBackgrounds = <table> {
 }
 lastProfTransmit = 610438.083000
 GetEnglishProf = <function> defined @Guildbook\Core.lua:719
 MinimapIcon = <table> {
 }
 Init = <function> defined @Guildbook\Core.l
commented

just added an extra check to the GetCharacterFromCache function, hopefully protect against any nil values