From 341cb00f336de5061e09d0eb933597d349cba9f8 Mon Sep 17 00:00:00 2001 From: torhal Date: Fri, 22 May 2009 06:01:28 +0000 Subject: [PATCH] In addon:SetupMap(): Added check for loc == nil and return if so, added another return if no map was found. --- ARLFrame.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ARLFrame.lua b/ARLFrame.lua index 8701915..4dad92c 100644 --- a/ARLFrame.lua +++ b/ARLFrame.lua @@ -494,6 +494,13 @@ do loc = questDB[k] end + if not loc then -- Uh-oh. -Torhal + --@debug@ + addon:Print("DEBUG: No continent/zone map match for ID " .. k .. " - loc is nil.") + --@end-debug@ + return + end + if (c1[loc["Location"]]) then continent = 1 zone = c1[loc["Location"]] @@ -510,6 +517,7 @@ do --@debug@ addon:Print("DEBUG: No continent/zone map match for ID " .. k .. ".") --@end-debug@ + return end if ((zone) and (continent)) then -- 1.7.9.5