Fix ticket #237: Guard against nil aura table.
Johnny C. Lam [04-18-13 - 23:43]
Fix ticket #237: Guard against nil aura table.
git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@902 d5049fe3-3747-40f7-a4b5-f36d6801af5f
diff --git a/OvaleAura.lua b/OvaleAura.lua
index 10f9ac5..f7d95ee 100644
--- a/OvaleAura.lua
+++ b/OvaleAura.lua
@@ -491,13 +491,15 @@ function OvaleAura:GetMyAuraOnAnyTarget(spellId, filter, excludingGUID)
auraList[spellId].mine = nil
end
local aura = auraList[spellId].mine
- if aura.start and (not start or aura.start < start) then
- start = aura.start
+ if aura then
+ if aura.start and (not start or aura.start < start) then
+ start = aura.start
+ end
+ if aura.ending and (not ending or aura.ending > ending) then
+ ending = aura.ending
+ end
+ count = count + 1
end
- if aura.ending and (not ending or aura.ending > ending) then
- ending = aura.ending
- end
- count = count + 1
end
end
end