From c74170f0537ee4beaeb92c9a5cdab33f70952cd5 Mon Sep 17 00:00:00 2001 From: shagu Date: Thu, 20 Jan 2022 10:37:16 +0100 Subject: [PATCH] eqcompare: check for tooltip text before using it --- modules/eqcompare.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/eqcompare.lua b/modules/eqcompare.lua index 74a2d304..fcdc3dcc 100644 --- a/modules/eqcompare.lua +++ b/modules/eqcompare.lua @@ -114,8 +114,9 @@ pfUI:RegisterModule("eqcompare", "vanilla", function () for _,target in pairs(targetData) do if target and not target.processed then -- we are an extra value - if not strfind(target.widget:GetText(), "|cff88ff88") and not strfind(target.widget:GetText(), "|cffff8888") then - target.widget:SetText(target.widget:GetText() .. "|cff88ff88 (+" .. target.value .. ")") + local text = target.widget:GetText() + if text and not strfind(text, "|cff88ff88") and not strfind(text, "|cffff8888") then + target.widget:SetText(text .. "|cff88ff88 (+" .. target.value .. ")") end end end