From bbc247098b3c24f5e816218449b5a4cf2980beaf Mon Sep 17 00:00:00 2001 From: Azilroka Date: Mon, 17 Mar 2014 15:21:09 -0500 Subject: [PATCH] Apparently can be nil sometimes. Don't ask me. --- ElvUI_SLE/modules/minimap/minimapicons.lua | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/ElvUI_SLE/modules/minimap/minimapicons.lua b/ElvUI_SLE/modules/minimap/minimapicons.lua index e2848a4..55557ef 100755 --- a/ElvUI_SLE/modules/minimap/minimapicons.lua +++ b/ElvUI_SLE/modules/minimap/minimapicons.lua @@ -323,13 +323,15 @@ function SMB:Initialize() SquareMinimapButtonBar.Skin = function() for i = 1, Minimap:GetNumChildren() do local object = select(i, Minimap:GetChildren()) - if object:IsObjectType('Button') and object:GetName() then - SkinButton(object) - end - for _, frame in pairs(AcceptedFrames) do - if object:IsObjectType('Frame') and object:GetName() == frame then + if object then + if object:IsObjectType('Button') and object:GetName() then SkinButton(object) end + for _, frame in pairs(AcceptedFrames) do + if object:IsObjectType('Frame') and object:GetName() == frame then + SkinButton(object) + end + end end end end -- 1.7.9.5