From 31556db8369ebddf7cf786be0a460e3fa2660042 Mon Sep 17 00:00:00 2001 From: Zidras <10605951+Zidras@users.noreply.github.com> Date: Wed, 20 Sep 2023 23:03:26 +0100 Subject: [PATCH] NP: prevent possible Lua error with ElvUI UnitFrame not being created --- ElvUI_ProjectZidras/Modules/Nameplates/Nameplates.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ElvUI_ProjectZidras/Modules/Nameplates/Nameplates.lua b/ElvUI_ProjectZidras/Modules/Nameplates/Nameplates.lua index aa973aa..f06d6b8 100644 --- a/ElvUI_ProjectZidras/Modules/Nameplates/Nameplates.lua +++ b/ElvUI_ProjectZidras/Modules/Nameplates/Nameplates.lua @@ -396,6 +396,8 @@ end local function OnHideHook(self) local frame = self.UnitFrame + if not frame then return end -- OnShowHook(plate) sometimes does not have ElvUI UnitFrame created yet, so prevent nil index + if frame.tagGUID then frame.tagGUID:SetText() end