From 47ce739cafd428c604fa08ccb84d602341cd497d Mon Sep 17 00:00:00 2001 From: Parnic Date: Wed, 25 May 2011 14:46:01 +0000 Subject: [PATCH] - drycoded possible fix for a reported error --- modules/CustomBar.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/CustomBar.lua b/modules/CustomBar.lua index 1bc89ee..dd76d31 100644 --- a/modules/CustomBar.lua +++ b/modules/CustomBar.lua @@ -554,6 +554,10 @@ end -- 'Protected' methods -------------------------------------------------------- function IceCustomBar.prototype:GetAuraDuration(unitName, buffName) + if not unitName or not buffName then + return nil + end + if unitName == "main hand weapon" or unitName == "off hand weapon" then local hasMainHandEnchant, mainHandExpiration, mainHandCharges, hasOffHandEnchant, offHandExpiration, offHandCharges = GetWeaponEnchantInfo()