Quantcast

In ListItem_OnClick(): If clicked_line is nil, do nothing.

James D. Callahan III [03-31-10 - 11:35]
In ListItem_OnClick(): If clicked_line is nil, do nothing.
Filename
Frame.lua
diff --git a/Frame.lua b/Frame.lua
index 101fc7d..ddabcf8 100644
--- a/Frame.lua
+++ b/Frame.lua
@@ -2646,6 +2646,9 @@ do
 		local clicked_line = ListFrame.entries[clickedIndex]
 		local traverseIndex = 0

+		if not clicked_line then
+			return
+		end
 		-- First, check if this is a "modified" click, and react appropriately
 		if clicked_line.recipe_id and _G.IsModifierKeyDown() then
 			if _G.IsControlKeyDown() and _G.IsShiftKeyDown() then