Skip to content

Commit d323483

Browse files
committed
fix: add nil check
1 parent ea3bcf5 commit d323483

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Modules/Quest/ObjectiveTracker.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,9 @@ end
275275
---@param frame ObjectiveTrackerBlockTemplate|{Text: FontString}
276276
function OT:HandleBlockHeader(frame)
277277
local text = frame.HeaderText or frame.Text
278+
if not text then
279+
return
280+
end
278281

279282
F.SetFontWithDB(text, self.db.title)
280283
text:Height(text:GetStringHeight() + 2)

0 commit comments

Comments
 (0)