LibItemSearch-1.3

LibItemSearch-1.3

1.2k Downloads

BagBrother/libs/ItemSearch-1.3-2/API.lua:53: attempt to index field 'args' (a nil value)

alphabitnz opened this issue ยท 1 comments

commented
BagBrother/libs/ItemSearch-1.3-2/API.lua:53: attempt to index field 'args' (a nil value)
[string "@BagBrother/libs/ItemSearch-1.3-2/API.lua"]:53: in function <BagBrother/libs/ItemSearch-1.3/API.lua:50>
[string "@BagBrother/libs/ItemSearch-1.3-2/API.lua"]:58: in function `IsUnusable'
[string "@BagBrother/addons/core/classes/item.lua"]:243: in function `UpdateBorder'
[string "@BagBrother/addons/core/classes/item.lua"]:206: in function <...rfaceBagBrother/addons/core/classes/item.lua:199>
[string "=[C]"]: in function `Update'
[string "@BagBrother/addons/core/classes/item.lua"]:134: in function <...rfaceBagBrother/addons/core/classes/item.lua:129>
[string "=[C]"]: in function `Show'
[string "@BagBrother/addons/core/api/frames.lua"]:85: in function `Show'
[string "@BagBrother/addons/core/api/frames.lua"]:77: in function <BagBrother/addons/core/api/frames.lua:76>
[string "=(tail call)"]: ?
[string "@BagBrother/addons/core/features/autoDisplay.lua"]:83: in function <...dOns/BagBrother/addons/core/features/autoDisplay.lua:82>
[string "=[C]"]: in function `ToggleAllBags'
[string "OPENALLBAGS"]:1: in function <[string "OPENALLBAGS"]:1>

Locals:
lines = <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> {
 }
}
(for index) = 15
(for limit) = 5
(for step) = -1
i = 15
(*temporary) = nil
(*temporary) = <table> {
 leftText = ""
 maxPrice = -1
 price = 910
 leftColor = <table> {
 }
 type = 11
}
(*temporary) = -1
(*temporary) = 0
(*temporary) = "attempt to index field 'args' (a nil value)"
C = <table> {
 TooltipInfo = <table> {
 }
 IsItemCache = <table> {
 }
 CurrencyInfo = <table> {
 }
 Container = <table> {
 }
}
id = 112551
L = <table> {
 CLASS_REQUIREMENT = "Classes: (.*)"
 PLAYER_CLASS = "Shaman"
 IN_SET = "Equipment Sets: |cFFFFFFFF(.*)|r"
}
commented

temporary workaround:

comment out section and replace return with pretty much anything, I just used the word 'sheep'

			for i = #lines-1, 5, -1 do
				-- local class = lines[i].args[2].stringVal:match(L.CLASS_REQUIREMENT)
				-- if class then
				--	return not class:find(L.PLAYER_CLASS)
				-- end
				return not sheep
			end