From 0d48750803fdc49129e46a20d8eeb535e263d649 Mon Sep 17 00:00:00 2001 From: Alexander Surkov Date: Tue, 10 Nov 2009 14:12:15 +0800 Subject: [PATCH] Bug 492961 - Crash [@ nsHTMLTableHeaderAccessible::GetRoleInternal(unsigned int*) ], r=marcoz, davidb --- accessible/src/html/nsHTMLTableAccessible.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/accessible/src/html/nsHTMLTableAccessible.cpp b/accessible/src/html/nsHTMLTableAccessible.cpp index 0b1aeb13eb06..6ebc01a2e313 100644 --- a/accessible/src/html/nsHTMLTableAccessible.cpp +++ b/accessible/src/html/nsHTMLTableAccessible.cpp @@ -403,6 +403,8 @@ nsHTMLTableHeaderCellAccessible::GetRoleInternal(PRUint32 *aRole) // Assume it's columnheader if there are headers in siblings, oterwise // rowheader. nsIContent* parent = content->GetParent(); + NS_ENSURE_STATE(parent); + PRInt32 indexInParent = parent->IndexOf(content); for (PRInt32 idx = indexInParent - 1; idx >= 0; idx--) {