From 68811d1d7ff93e8e0488c611dbce795d354f2caa Mon Sep 17 00:00:00 2001 From: Alexander Surkov Date: Mon, 30 Nov 2009 13:59:09 +0800 Subject: [PATCH] Bug 528311 - Crash [@ nsXULTreeAccessible::GetTreeItemAccessible(int, nsIAccessible**) ], part2, r=marcoz, b192=beltzner --- accessible/src/xul/nsXULTreeAccessible.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accessible/src/xul/nsXULTreeAccessible.cpp b/accessible/src/xul/nsXULTreeAccessible.cpp index 1a0ce0ea225b..b5467bc8f659 100644 --- a/accessible/src/xul/nsXULTreeAccessible.cpp +++ b/accessible/src/xul/nsXULTreeAccessible.cpp @@ -544,7 +544,7 @@ nsXULTreeAccessible::GetTreeItemAccessible(PRInt32 aRow, { *aAccessible = nsnull; - if (aRow < 0) + if (aRow < 0 || IsDefunct()) return; PRInt32 rowCount = 0;