LFGSpamFilter

LFGSpamFilter

191k Downloads

Attempt to compare number with nil

timwoj opened this issue ยท 3 comments

commented

I think this happened because I got declined for a group while porting from Oribos to The Maw, but I can't be completely sure. I heard Bugsack make the noise for the bug as I was jumping into the hole.

From Bugsack:

1x FrameXML\LFGList.lua:2829: attempt to compare number with nil
[string "@FrameXML\LFGList.lua"]:2829: in function <FrameXML\LFGList.lua:2826>
[string "@FrameXML\LFGList.lua"]:2836: in function <FrameXML\LFGList.lua:2832>
[string "=[C]"]: in function `sort'
[string "@FrameXML\LFGList.lua"]:2862: in function <FrameXML\LFGList.lua:2861>
[string "=[C]"]: in function `LFGListUtil_SortSearchResults'
[string "@FrameXML\LFGList.lua"]:1774: in function `LFGListSearchPanel_UpdateResultList'
[string "@LFGSpamFilter\LFGSpamFilter-0.3.2.lua"]:499: in function `updateLfgList'
[string "@LFGSpamFilter\LFGSpamFilter-0.3.2.lua"]:448: in function `?'
[string "@LFGSpamFilter\LFGSpamFilter-0.3.2.lua"]:115: in function <LFGSpamFilter\LFGSpamFilter.lua:114>

Locals:
lfgSearchResultID = 1745
roles = <table> {
 HUNTER = 3
 WARRIOR = 1
 ROGUE = 0
 MAGE = 2
 NOROLE = 0
 HEALER_REMAINING = 27
 DRUID = 2
 MONK = 1
 DEATHKNIGHT = 0
 TANK = 2
 DAMAGER_REMAINING = 20
 HEALER = 3
 PRIEST = 1
 TANK_REMAINING = 28
 WARLOCK = 2
 DEMONHUNTER = 0
 PALADIN = 1
 DAMAGER = 10
 SHAMAN = 2
}
playerRole = nil
(*temporary) = nil
(*temporary) = "attempt to compare number with nil"
roleRemainingKeyLookup = <table> {
 DAMAGER = "DAMAGER_REMAINING"
 TANK = "TANK_REMAINING"
 HEALER = "HEALER_REMAINING"
}
commented

This shouldn't happen in 0.3.3 anymore as the addon no longer handles the LFG_LIST_SEARCH_RESULT_UPDATED event.

commented

Haven't encountered this myself, but I'll look into it. Thanks!

commented

Yah, I've only seen it the one time. It seems like something that would be a real pain to reproduce too.