From f1002aa5141cd353e951e5d7599319162ca9ba7a Mon Sep 17 00:00:00 2001 From: shagu Date: Tue, 26 May 2020 19:30:01 +0200 Subject: [PATCH] bubbles: check for valid elements on detection --- modules/bubbles.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/bubbles.lua b/modules/bubbles.lua index e029f395..9aa8293b 100644 --- a/modules/bubbles.lua +++ b/modules/bubbles.lua @@ -18,7 +18,7 @@ pfUI:RegisterModule("bubbles", "vanilla:tbc", function () function pfUI.bubbles:IsBubble(f) if f:GetName() then return end if not f:GetRegions() then return end - return f:GetRegions():GetTexture() == "Interface\\Tooltips\\ChatBubble-Background" + return f:GetRegions().GetTexture and f:GetRegions():GetTexture() == "Interface\\Tooltips\\ChatBubble-Background" end function pfUI.bubbles:ProcessBubble(f)