I'm sure this is just me being blind, but I'm getting the following error:
[2009/11/22 13:18:01-2331-x1]: Observer-0.1\Observer.lua:168: attempt to index field '?' (a nil value)
Observer-0.1\Observer.lua:181: in function `?'
CallbackHandler-1.0-5:146: in function <...non\libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:146>
<string>:"safecall Dispatcher":4: in function <[string "safecall Dispatcher"]:4>
<in C code>: ?
<string>:"safecall Dispatcher":13: in function `?'
CallbackHandler-1.0-5:91: in function `Fire'
LibSharedMedia-3.0-90058:176: in function `Register'
SharedMedia-3.0.1-177\SharedMedia.lua:48: in main chunk
Yet, the odd thing is that this does not seem to effect my addon function at all. Everything works fine. Thoughts?
Apparently, you aren't allocating a texture for every entry in barFrames. If you're doing this intentionally, then you need to modify your code thusly:
local texturePath = LSM3:Fetch("statusbar", db.bar.texture)
for i = 0, #barFrames do
if barFrames[i].texture then
If there are no entries, then the for loop will do nothing. I don't see anywhere other than its definition where Observer:AddBar() is used, so it's possible that the code which calls :AddBar() is doing so without filling all of the entries. In that case, it would be the barFrames[whatever] which is nil, not just its texture. In that case, you would need to change the if-check in the loop to this: