Equip Recommended Gear

Equip Recommended Gear

3.5k Downloads

compareItemLevel has an edge case where it can be nil

Saaappi opened this issue ยท 1 comments

commented
CLICK FOR STACK TRACE There may be an error, but I like the addon! Here's a slice of pizza. ๐Ÿ•
1x EquipRecommendedGear/Core.lua:319: attempt to compare nil with number
[string "@EquipRecommendedGear/Core.lua"]:319: in function `DoTheThing'
[string "@EquipRecommendedGear/Core.lua"]:80: in function <EquipRecommendedGear/Core.lua:74>

Locals:
itemLevel = <table> {
 1 = 187
 2 = 319
 3 = 187
 5 = 319
 6 = 187
 7 = 187
 8 = 319
 9 = 319
 10 = 187
 11 = 319
 12 = 187
 13 = 246
 14 = 187
 15 = 319
 16 = 187
 17 = 0
}
bag = <table> {
 1 = 30
 2 = 30
 3 = 30
 4 = 30
 5 = 0
 0 = 20
}
item = <table> {
 1 = <table> {
 }
 2 = <table> {
 }
 3 = <table> {
 }
 4 = <table> {
 }
 5 = <table> {
 }
 6 = <table> {
 }
 7 = <table> {
 }
 8 = <table> {
 }
 9 = <table> {
 }
 10 = <table> {
 }
 11 = <table> {
 }
 12 = <table> {
 }
 13 = <table> {
 }
 14 = <table> {
 }
 15 = <table> {
 }
 16 = <table> {
 }
 17 = <table> {
 }
 18 = <table> {
 }
 19 = <table> {
 }
 20 = <table> {
 }
 21 = <table> {
 }
}
upgrade = <table> {
 1 = <table> {
 }
}
weaponUpgrade = <table> {
}
(for generator) = <function> defined =[C]:-1
(for state) = <table> {
 1 = <table> {
 }
 2 = <table> {
 }
 3 = <table> {
 }
 4 = <table> {
 }
 5 = <table> {
 }
 6 = <table> {
 }
 7 = <table> {
 }
 8 = <table> {
 }
 9 = <table> {
 }
 10 = <table> {
 }
 11 = <table> {
 }
 12 = <table> {
 }
 13 = <table> {
 }
 14 = <table> {
 }
 15 = <table> {
 }
 16 = <table> {
 }
 17 = <table> {
 }
 18 = <table> {
 }
 19 = <table> {
 }
 20 = <table> {
 }
 21 = <table> {
 }
}
(for control) = 2
k = 2
v = <table> {
 ilv = 236
 type = "4.1"
 item = "|cff1eff00|Hitem:191983::::::::63:265::17:3:9156:8902:6652:2:28:2424:9:61:::::|h[Cobalt Watcher's Vestment]|h|r"
 slot = "INVTYPE_ROBE"
}
armorClass = "Cloth"
primaryStat = "ITEM_MOD_INTELLECT_SHORT"
equippable = true
weapon = false
itemID = 191983
compareItemLevel = nil
(*temporary) = 236
(*temporary) = "INVTYPE_ROBE"
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = 263
(*temporary) = nil
(*temporary) = 1473
(*temporary) = "ITEM_MOD_INTELLECT_SHORT"
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = 84
(*temporary) = <table> {
 ITEM_MOD_INTELLECT_SHORT = 84
}
(*temporary) = "attempt to compare nil with number"
app = <table> {
 api = <table> {
 }
 DoingStuff = true
 Initialise = <function> defined @EquipRecommendedGear/Core.lua:55
 Armor = <table> {
 }
 CreateAssets = <function> defined @EquipRecommendedGear/Core.lua:64
 Stat = <table> {
 }
 NameLong = "|R|cffC69B6DEquip Recommended Gear|R"
 Type = <table> {
 }
 Slot = <table> {
 }
 NameShort = "|R|cffC69B6DERC|R"
 DualWield = <table> {
 }
 CanDualWield = false
 Level = 63
 Dump = <function> defined @EquipRecommendedGear/Core.lua:29
 ClassID = 9
 Sex = 0
 Button = rcButton {
 }
 SpecID = 265
 Print = <function> defined @EquipRecommendedGear/Core.lua:46
 Weapon = <table> {
 }
}

commented

Fixed with 0853f30.