Closed radumalica closed 2 months ago
I had an "info" check at the dev version but didn't do much. I will implement your solution, although the whole module breaks when Blizzard Reputation pane breaks. Will see. Thank you :)
Glad i could help, I see that you released v4.53 with the fix so I will close this issue.
Describe the bug and post the error message, if there is one After intallation of 4.52, i have this error
To Reproduce Steps to reproduce the behavior: Install Elvui latest version and BenikUI, you will get an error catched by BugSack
Expected behavior A clear and concise description of what you expected to happen. No error should appear, and ElvUI addon settings should be visible
Screenshots If applicable, add screenshots to help explain your problem.
Please include the addon and game versions:
Additional context Add any other context about the problem here.
Here is the error:
8x ...dOns/ElvUI_BenikUI/modules/dashboard/reputations.lua:293: attempt to index local 'info' (a nil value) [string "@ElvUI_BenikUI/modules/dashboard/reputations.lua"]:293: in function 'PopulateFactionData' [string "@ElvUI_BenikUI/modules/dashboard/reputations.lua"]:377: in function 'ToggleReputations' [string "@ElvUI_BenikUI/modules/dashboard/reputations.lua"]:401: in function 'CreateReputationsDashboard' [string "@ElvUI_BenikUI/modules/dashboard/reputations.lua"]:405: in function 'LoadReputations' [string "@ElvUI_BenikUI/modules/dashboard/dashboards.lua"]:299: in function 'Initialize'
After digging a little bit, it seems that for TWW, Blizzard doesn't return the factions on GetFactionDataByIndex, hence
info
having anil
value.What i did to fix the problem was adding another
if
statement in functionmod:PopulateFactionData()
which checks ifinfo
is nil or nothere is the workaround which fixes the problem adding another line after
local info = GetFactionData(factionIndex)
: