ElvUI WindTools

ElvUI WindTools

3M Downloads

[Bug] Friend List Lua Error (expansion)

mdavidatag opened this issue ยท 2 comments

commented

Describe the bug
When opening the social frame (O key) I get the following lua error

To Reproduce
Steps to reproduce the behavior:

  1. Click O to open the Social Pane
  2. See error

Expected behavior
Social Pane to open

Screenshots
If applicable, add screenshots to help explain your problem.

Information (you can find these in [WindTools-Information]):

  • Addon Version: 3.04
  • ElvUI Version: 13.04 and 13.05
  • WoW Build [e.g. 10.0.2.46702

Additional context
Lua Error:
Message: ...AddOns/ElvUI_WindTools/Modules/Social/FriendList.lua:307: attempt to index local 'expansion' (a nil value)
Time: Mon Nov 21 22:13:10 2022
Count: 1
Stack: ...AddOns/ElvUI_WindTools/Modules/Social/FriendList.lua:307: attempt to index local 'expansion' (a nil value)
[string "=[C]"]: ?
[string "@Interface/AddOns/ElvUI_WindTools/Modules/Social/FriendList.lua"]:307: in function <...AddOns/ElvUI_WindTools/Modules/Social/FriendList.lua:220>
[string "=(tail call)"]: ?
[string "=[C]"]: in function initializer' [string "@Interface/SharedXML/Scroll/ScrollBoxListView.lua"]:283: in function InvokeInitializers'
[string "@Interface/SharedXML/Scroll/ScrollBox.lua"]:657: in function Update' [string "@Interface/SharedXML/Scroll/ScrollBox.lua"]:233: in function SetScrollPercentageInternal'
[string "@Interface/SharedXML/Scroll/ScrollBox.lua"]:151: in function FullUpdateInternal' [string "@Interface/SharedXML/Scroll/ScrollBox.lua"]:631: in function FullUpdateInternal'
[string "@Interface/SharedXML/Scroll/ScrollBox.lua"]:113: in function FullUpdate' [string "@Interface/SharedXML/Scroll/ScrollBox.lua"]:605: in function <Interface/SharedXML/Scroll/ScrollBox.lua:604> [string "=[C]"]: ? ... [string "@Interface/FrameXML/FriendsFrame.lua"]:607: in function FriendsList_Update'
[string "@Interface/FrameXML/FriendsFrame.lua"]:327: in function <Interface/FrameXML/FriendsFrame.lua:326>
[string "=[C]"]: in function Show' [string "@Interface/FrameXML/UIParent.lua"]:2853: in function SetUIPanel'
[string "@Interface/FrameXML/UIParent.lua"]:2696: in function ShowUIPanel' [string "@Interface/FrameXML/UIParent.lua"]:2561: in function <Interface/FrameXML/UIParent.lua:2557> [string "=[C]"]: in function SetAttribute'
[string "@Interface/FrameXML/UIParent.lua"]:3159: in function ShowUIPanel' [string "@Interface/FrameXML/FriendsFrame.lua"]:1060: in function ToggleFriendsFrame'
[string "TOGGLESOCIAL"]:1: in function <[string "TOGGLESOCIAL"]:1>

Locals:

commented

I don't have this problem in game whether my friends playing WotLK or not.
I added an additional check to avoid the situation, it should work for you.
If you met this error again in 3.05 (not publish yet) please re-open this issue.

commented

This appears to only be a bug when a friend is playing in WotLK expansion. After some testing I don't think this is the case.