some bulletproofing/wallpapering for crasher bug #203431

r=varga, sr=bienvenu, a=sspitzer
This commit is contained in:
sspitzer%netscape.com 2003-04-26 21:57:39 +00:00
parent 9f6e7048fb
commit c0914052a5

View File

@ -729,6 +729,9 @@ nsTreeSelection::FireOnSelectHandler()
return NS_OK;
nsCOMPtr<nsIBoxObject> boxObject = do_QueryInterface(mTree);
NS_ASSERTION(boxObject, "no box object!");
if (!boxObject)
return NS_ERROR_UNEXPECTED;
nsCOMPtr<nsIDOMElement> elt;
boxObject->GetElement(getter_AddRefs(elt));