Bug 424073. Crash @ nsAccessible::GetTextFromRelationID(nsIAtom*, nsString). r=surkov, a=beltzner for 1.9b5

This commit is contained in:
aaronleventhal@moonset.net 2008-03-24 11:50:16 -07:00
parent a8535b1563
commit 55397f94bf

View File

@ -1710,8 +1710,10 @@ nsresult nsAccessible::GetTextFromRelationID(nsIAtom *aIDProperty, nsString &aNa
{
// Get DHTML name from content subtree pointed to by ID attribute
aName.Truncate();
NS_ASSERTION(mDOMNode, "Called from shutdown accessible");
nsCOMPtr<nsIContent> content = GetRoleContent(mDOMNode);
NS_ASSERTION(content, "Called from shutdown accessible");
if (!content)
return NS_OK;
nsAutoString ids;
if (!content->GetAttr(kNameSpaceID_None, aIDProperty, ids)) {