Bug 746990 - crash in nsXULTreeAccessible::Value, r=surkov

This commit is contained in:
Mark Capella 2012-04-27 17:11:03 +09:00
parent 09bc237e5d
commit 7adaeb438d

View File

@ -146,10 +146,11 @@ nsXULTreeAccessible::NativeState()
void
nsXULTreeAccessible::Value(nsString& aValue)
{
// Return the value is the first selected child.
aValue.Truncate();
if (!mTreeView)
return;
// Return the value is the first selected child.
nsCOMPtr<nsITreeSelection> selection;
mTreeView->GetSelection(getter_AddRefs(selection));
if (!selection)