From bdefe797321f3392f5dc6f7369d515b4a54d9280 Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Mon, 23 Nov 2020 23:06:38 -0300 Subject: [PATCH] Bug fixes --- .vscode/bookmarks.json | 5 +++++ WorldQuestTracker_GroupFinder.lua | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.vscode/bookmarks.json b/.vscode/bookmarks.json index 3f9e4ba5..f248dcdc 100644 --- a/.vscode/bookmarks.json +++ b/.vscode/bookmarks.json @@ -67,6 +67,11 @@ { "path": "$ROOTPATH$\\WorldQuestTracker_GroupFinder.lua", "bookmarks": [ + { + "line": 133, + "column": 27, + "label": "" + }, { "line": 308, "column": 34, diff --git a/WorldQuestTracker_GroupFinder.lua b/WorldQuestTracker_GroupFinder.lua index 540b04ee..b5d13321 100644 --- a/WorldQuestTracker_GroupFinder.lua +++ b/WorldQuestTracker_GroupFinder.lua @@ -131,7 +131,7 @@ local GetDistance_Point = DF.GetDistance_Point elseif (event == "LFG_LIST_SEARCH_RESULTS_RECEIVED") then local results = LFGListFrame.SearchPanel.results --no results? - if (#results == 0) then + if (results and #results == 0) then --show the create group button if in quest category local selectedCategory = LFGListFrame.SearchPanel.categoryID if (selectedCategory ~= 1) then @@ -1086,6 +1086,9 @@ ff:SetScript ("OnEvent", function (self, event, questID, arg2, arg3) end local tagInfo = C_QuestLog.GetQuestTagInfo(questID) + if (not tagInfo) then + return + end local tagID = tagInfo.tagID local rarity = tagInfo.rarity or 1 local isElite = tagInfo.isElite