View Single Post
11-11-12, 11:40 PM   #2
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
That error is caused by non-frame tables whose metatable __index is a frame. You can fix it by making your frame check more robust:

Code:
if val.IsProtected 
and val.GetObjectType 
and val.GetScript 
and type(rawget(val, 0)) == "userdata"
and val:GetObjectType() == "CheckButton" 
and val:IsProtected() then
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote