Skip to content

Commit

Permalink
fix: fix possible nil error
Browse files Browse the repository at this point in the history
  • Loading branch information
fang2hou committed Sep 19, 2024
1 parent db5a3fe commit 46c100c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/Tooltips/ObjectiveProgress.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ local function addObjectiveProgress(tt, data)
return
end

local npcID = select(6, strsplit("-", data.guid))
local npcID = data and data.guid and select(6, strsplit("-", data.guid))

if not npcID or npcID == "" then
return
Expand Down

0 comments on commit 46c100c

Please sign in to comment.