From 6758e5d9c313cf7397ed4cac6abcfeb5ab655959 Mon Sep 17 00:00:00 2001 From: Hendrik Leppkes Date: Sat, 21 Feb 2009 19:16:06 +0100 Subject: [PATCH] Safety check for an error that really shouldn't happen. --- ActionButton.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/ActionButton.lua b/ActionButton.lua index 94d5a6b..284bb2b 100644 --- a/ActionButton.lua +++ b/ActionButton.lua @@ -83,6 +83,7 @@ function Bartender4.Button:Create(id, parent) button:SetAttribute('_childupdate-state', [[ self:SetAttribute("state", message) local action = self:GetAttribute("action-" .. message) + if not action then return end if action == 132 then self:SetAttribute("type", "click") if not self:GetAttribute("isSpecial") then