From 67b1aeecc28ee18f9b52c7d467b6245c6ece6c46 Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Fri, 9 Apr 2010 21:50:28 -0400 Subject: [PATCH] In ListItem_OnClick(): Check to see if "children" is nil before checking how many entries it has. --- Frame.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Frame.lua b/Frame.lua index 060b951..f794863 100644 --- a/Frame.lua +++ b/Frame.lua @@ -2759,9 +2759,11 @@ do local children = clicked_line.parent.children -- Remove the expanded lines. - while #children > 0 do - table.remove(children) - ReleaseTable(table.remove(ListFrame.entries, traverseIndex)) + if children then + while #children > 0 do + table.remove(children) + ReleaseTable(table.remove(ListFrame.entries, traverseIndex)) + end end end highlight:Hide() -- 1.7.9.5