Error upon logging in
ElvenSpellmaker opened this issue ยท 3 comments
Hi there, now you've changed over the event system, I get this error upon logging in:
Error occured in: Global
Count: 72
Message: ..\AddOns\Combuctor\main.lua line 279:
bad argument #1 to 'pairs' (table expected, got nil)
Debug:
Combuctor\main.lua:279: UpdateFrames()
Combuctor\events\itemFrame.lua:99: method()
Combuctor\events\itemFrame.lua:24:
Combuctor\events\itemFrame.lua:21
Locals:
(_temporary) = nil
(_temporary) = "table expected, got nil"
= defined =C:-1
Just making sure:
- Is that the first error you got? (last on the dialog)
- Have you updated while wow was running.
Because it's kind of weird.
Yes, this is the last error on the dialogue.
I also just removed the Combuctor folder and re-downloaded the addon, with the same error on log-in.
(Whoops, deleted this post)
Confirmed, similar error for me even with clean SavedVariables:
954x Combuctor-5.3.1\main.lua:279: bad argument #1 to "pairs" (table expected, got nil)
<in C code>
Combuctor-5.3.1\main.lua:279: in function "UpdateFrames"
Combuctor-5.3.1\events\itemFrame.lua:99: in function "method"
Combuctor-5.3.1\events\itemFrame.lua:24: in function <Combuctor\events\itemFrame.lua:21>
It looks like to me that the GET_ITEM_INFO_RECEIVED event is being received before Addon.frames exists.
EDIT: Adding a check to see if self.frames exists to the function in line 279 in main.lua removes the error. It probably isn't the best solution but it will do for now.