In addon:SetupMap(): Added check for loc == nil and return if so, added another return if no map was found.
torhal [05-22-09 - 06:01]
In addon:SetupMap(): Added check for loc == nil and return if so, added another return if no map was found.
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