From c1292a16485b44d1f71f3e2c79d0ad6d996aadda Mon Sep 17 00:00:00 2001 From: jordon <29447509+jordonwow@users.noreply.github.com> Date: Fri, 25 Mar 2022 14:06:46 -0700 Subject: [PATCH] make sure buffFrame exists --- BigDebuffs.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/BigDebuffs.lua b/BigDebuffs.lua index 1b8cf41..9ca8baf 100755 --- a/BigDebuffs.lua +++ b/BigDebuffs.lua @@ -1791,6 +1791,8 @@ else return end + if (not frame.buffFrames) then return end + local maxBuffs = BigDebuffs.db.profile.raidFrames.increaseBuffs and MAX_BUFFS or frame.maxBuffs local index = 1; @@ -1801,7 +1803,9 @@ else if ( buffName ) then if ( CompactUnitFrame_UtilShouldDisplayBuff(frame.displayedUnit, index, filter) and not CompactUnitFrame_UtilIsBossAura(frame.displayedUnit, index, filter, true) ) then local buffFrame = frame.buffFrames[frameNum]; - CompactUnitFrame_UtilSetBuff(buffFrame, frame.displayedUnit, index, filter); + if buffFrame then + CompactUnitFrame_UtilSetBuff(buffFrame, frame.displayedUnit, index, filter); + end frameNum = frameNum + 1; end else @@ -1811,7 +1815,9 @@ else end for i=frameNum, maxBuffs do local buffFrame = frame.buffFrames[i]; - buffFrame:Hide(); + if buffFrame then + buffFrame:Hide(); + end end end) end