Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Lua error: attempt to index local 'friend_info' (a nil value) #6

Open
LenweSaralonde opened this issue Sep 18, 2022 · 0 comments

Comments

@LenweSaralonde
Copy link
Contributor

This sometimes happens when logging on MoonGuard with my EU Bnet account.
This is due to the fact that the C_BattleNet.GetFriendAccountInfo() function can sometimes return nil.

Message: Interface\AddOns\CrossRP\protocol.lua:604: attempt to index local 'friend_info' (a nil value)
Time: Sun Sep 18 19:51:37 2022
Count: 1
Stack: Interface\AddOns\CrossRP\protocol.lua:604: attempt to index local 'friend_info' (a nil value)
[string "@Interface\AddOns\CrossRP\protocol.lua"]:604: in function `(for generator)'
[string "@Interface\AddOns\CrossRP\protocol.lua"]:1710: in function <Interface\AddOns\CrossRP\protocol.lua:1705>
[string "@Interface\AddOns\CrossRP\protocol.lua"]:2685: in function <Interface\AddOns\CrossRP\protocol.lua:2659>
[string "=(tail call)"]: ?
[string "@Interface\AddOns\CrossRP\timer.lua"]:98: in function <Interface\AddOns\CrossRP\timer.lua:94>

Locals: friend_info = nil
(*temporary) = nil
(*temporary) = 16
(*temporary) = nil
(*temporary) = <table> {
 isGameAFK = false
 clientProgram = "App"
 richPresence = "Dans l’application Blizzard"
 isGameBusy = false
 gameAccountID = 177
 isWowMobile = false
 isInCurrentRegion = false
 regionID = 3
 hasFocus = true
 canSummon = false
 isOnline = true
}
(*temporary) = false
(*temporary) = "attempt to index local 'friend_info' (a nil value)"
friend = 16
friendscount = 148
account_iterator = nil
C_BattleNet = <table> {
 GetGameAccountInfoByID = <function> defined =[C]:-1
 GetAccountInfoByID = <function> defined =[C]:-1
 GetFriendAccountInfo = <function> defined =[C]:-1
 GetFriendGameAccountInfo = <function> defined =[C]:-1
 GetGameAccountInfoByGUID = <function> defined =[C]:-1
 GetFriendNumGameAccounts = <function> defined =[C]:-1
 GetAccountInfoByGUID = <function> defined =[C]:-1
}
BNET_CLIENT_WOW = "WoW"
GameAccounts = <function> defined @Interface\AddOns\CrossRP\protocol.lua:564
LenweSaralonde added a commit to LenweSaralonde/crossrp that referenced this issue Sep 18, 2022
tmg-pub added a commit that referenced this issue Oct 26, 2022
Fix for [Bug] Lua error: attempt to index local 'friend_info' (a nil value) #6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant