diff --git a/modules/eqcompare.lua b/modules/eqcompare.lua index 3e89d3a8..865fc63a 100644 --- a/modules/eqcompare.lua +++ b/modules/eqcompare.lua @@ -102,8 +102,10 @@ pfUI:RegisterModule("eqcompare", function () end else -- this attribute doesnt exist in target - if not strfind(v.widget:GetText(), "|cff88ff88") and not strfind(v.widget:GetText(), "|cffff8888") then - v.widget:SetText(v.widget:GetText() .. "|cff88ff88 (+" .. v.value .. ")") + if v.widget and v.widget:GetText() then + if not strfind(v.widget:GetText(), "|cff88ff88") and not strfind(v.widget:GetText(), "|cffff8888") then + v.widget:SetText(v.widget:GetText() .. "|cff88ff88 (+" .. v.value .. ")") + end end end end