Skip to content

Commit

Permalink
NP: prevent possible Lua error with ElvUI UnitFrame not being created
Browse files Browse the repository at this point in the history
  • Loading branch information
Zidras committed Sep 20, 2023
1 parent dff6929 commit 31556db
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ElvUI_ProjectZidras/Modules/Nameplates/Nameplates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 31556db

Please sign in to comment.