Bug 418812 - "Crash @ nsXULListitemAccessible::GetListAccessible() when hitting Reply from within a Thunderbird message" (add a NULL check) [p=marco.zehe@googlemail.com (Marco Zehe) r=surkov a1.9=beltzner]

git-svn-id: svn://10.0.0.236/trunk@246291 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
reed%reedloden.com 2008-02-22 11:07:54 +00:00
parent 596340e45e
commit 17afe027be

View File

@ -599,7 +599,9 @@ nsXULListitemAccessible::GetListAccessible()
nsCOMPtr<nsIDOMXULSelectControlItemElement> listItem =
do_QueryInterface(mDOMNode);
if (!listItem)
return nsnull;
nsCOMPtr<nsIDOMXULSelectControlElement> list;
listItem->GetControl(getter_AddRefs(list));
if (!list)