Cross RP

Cross RP

169k Downloads

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

LenweSaralonde opened this issue · 0 comments

commented

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