GetFriendInfo() sometimes returns a nil name?
mrozekma opened this issue ยท 0 comments
Error with 2.8 on login
Message: Interface\AddOns\KeystoneQuery\KeystoneQuery-2.8.lua:252: bad argument #2 to 'format' (string expected, got nil)
Time: 01/05/17 22:21:33
Count: 1
Stack: [C]: in function `format'
Interface\AddOns\KeystoneQuery\KeystoneQuery.lua:252: in function `getFriendPlayerNames'
Interface\AddOns\KeystoneQuery\KeystoneQuery.lua:511: in function `broadcast'
Interface\AddOns\KeystoneQuery\KeystoneQuery.lua:443: in function `startTimers'
Interface\AddOns\KeystoneQuery\KeystoneQuery.lua:783: in function <Interface\AddOns\KeystoneQuery\KeystoneQuery.lua:781>
(tail call): ?
[C]: ?
[string "safecall Dispatcher[1]"]:9: in function <[string "safecall Dispatcher[1]"]:5>
(tail call): ?
...AddOns\ElvUI\Libraries\AceAddon-3.0\AceAddon-3.0.lua:558: in function `EnableAddon'
...AddOns\ElvUI\Libraries\AceAddon-3.0\AceAddon-3.0.lua:651: in function <...AddOns\ElvUI\Libraries\AceAddon-3.0\AceAddon-3.0.lua:636>
[C]: in function `LoadAddOn'
Interface\FrameXML\UIParent.lua:407: in function `UIParentLoadAddOn'
Interface\FrameXML\UIParent.lua:498: in function `TimeManager_LoadUI'
Interface\FrameXML\UIParent.lua:1010: in function <Interface\FrameXML\UIParent.lua:907>
Locals: <none>
That argument is the name
that came out of GetFriendInfo()
, which as far as I know shoudn't be nil as long as the friend index is in range. Not sure why that's happening, but will probably just check for it