Commit b9fa9f9e authored by Mark Capella's avatar Mark Capella
Browse files

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

parent 84d6543a
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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)