Quantcast

In GenerateTooltipContent(): If recipe_entry is nil, abort immediately.

James D. Callahan III [03-21-10 - 07:17]
In GenerateTooltipContent(): If recipe_entry is nil, abort immediately.
Filename
Frame.lua
diff --git a/Frame.lua b/Frame.lua
index aab556e..817c3a0 100644
--- a/Frame.lua
+++ b/Frame.lua
@@ -600,9 +600,13 @@ do
 	end

 	function GenerateTooltipContent(owner, rIndex)
+		local recipe_entry = private.recipe_list[rIndex]
+
+		if not recipe_entry then
+			return
+		end
 		local spell_tip_anchor = addon.db.profile.spelltooltiplocation
 		local acquire_tip_anchor = addon.db.profile.acquiretooltiplocation
-		local recipe_entry = private.recipe_list[rIndex]
 		local spell_link = recipe_entry.spell_link
 		local MainPanel = addon.Frame