DennisRas / AlterEgo

AlterEgo is a World of Warcraft addon to track the Mythic+ progress of all your characters
11 stars 7 forks source link

Missing dataCurrentAffixes may result in an error #145

Closed DennisRas closed 5 months ago

DennisRas commented 5 months ago

Issue: image

Solution: Check to see if the affix data has been loaded. Must create the frames on UpdateUI() instead then if the data is delayed?

Reported by Xamona on the NoP Discord

DennisRas commented 5 months ago

Reported on https://www.curseforge.com/wow/addons/alterego/comments

Getting some of those 93x AlterEgo/Utils.lua:44: bad argument #1 to 'pairs' (table expected, got nil) [string "=[C]"]: in function pairs' [string "@AlterEgo/Utils.lua"]:44: in functionAE_table_count' [string "@AlterEgo/Interface.lua"]:932: in function CreateUI' [string "@AlterEgo/AlterEgo.lua"]:131: in function?' [string "@AddOnSkins/Libs/Ace3/AceTimer-3.0-17/AceTimer-3.0.lua"]:55: in function <...s/AddOnSkins/Libs/Ace3/AceTimer-3.0/AceTimer-3.0.lua:50> Locals: (temporary) = nil (temporary) = "table expected, got nil" = defined =[C]:-1