Hey all,
So every so often, someone reports an issue with my addon throwing errors and every time it is the same issue and I have no idea why the error is being generated in the first place. It never happens when the addon is run standalone, it always has one or more addons listed in the error reports.
The most recent report is:
Code:
Message: ConvertRatings\ConvertRatings-1.10.5a.lua:147: Usage: GetItemInfo(itemID|"name"|"itemlink")
Stack: [C] in function 'GetItemInfo'
ConvertRatings\ConvertRatings-1.10.5a.lua:147: in function <ConvertRatings\ConvertRatings.lua:116>
[C] ?
[C] ?
[C] ?
...dOns\HiddenArtifactTracker\HiddenArtifactTracker.lua:133: in function <...dOns\HiddenArtifactTracker\HiddenArtifactTracker.lua:130>
[C] ?
[C] ?
[C] ?
...rface\TradeSkillMaster\Private\TooltipLib.lua:85: in function <...rface\TradeSkillMaster\Private\TooltipLib.lua:82>
[C] ?
[C] ?
[C] ?
[C] in function 'SetToyByItemID'
AutoBar\AutoBarClassBasicButton.lua:69: in function 'TooltipShow'
AutoBar\AutoBarClassPopupButton.lua:62: in function <AutoBar\AutoBarClassPopupButton.lua:55>
[C] ?
FrameXML\SecureHandlers.lua:264: in function <FrameXML\SecureHandlers.lua:261>
[C] ?
FrameXML\SecureHandlers.lua:320: in function <FrameXML\SecureHandlers.lua:304>
(tail call): ?
Time: 2017/06/16 12:58:39 Count: 2
Locals:
(*temporary) = nil
The line in question is:
Lua Code:
local irare = select(3,GetItemInfo(itemLink))
For the life of me, I can't see why that line should be throwing an error ..... EVER. GetItemInfo() has 17 values returned when called, and I am only looking at the 3rd, which is the item rarity result, which every single item in the game has a value of.
All I can think is that for some reason, the other addons are preventing mine from capturing the itemLink of the moused over item, but how in the hell can that happen?
Any ideas?
full code link :
https://github.com/mynian/ConvertRat...ertRatings.lua