From 25a8f49a2df9f29694aaefd5df9c93a44cd9a1ec Mon Sep 17 00:00:00 2001 From: "aaronleventhal@moonset.net" Date: Mon, 25 Feb 2008 12:40:19 -0800 Subject: [PATCH] Bug 419413. Crash [ @ CAccessibleHyperlink::get_anchorTarget() ]. r=marcoz, a=dsicore --- accessible/src/msaa/CAccessibleHyperlink.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/accessible/src/msaa/CAccessibleHyperlink.cpp b/accessible/src/msaa/CAccessibleHyperlink.cpp index d908bf1074d..e7bfa5661df 100755 --- a/accessible/src/msaa/CAccessibleHyperlink.cpp +++ b/accessible/src/msaa/CAccessibleHyperlink.cpp @@ -121,17 +121,17 @@ __try { nsCOMPtr uri; nsresult rv = acc->GetURI(aIndex, getter_AddRefs(uri)); - if (NS_SUCCEEDED(rv)) + if (NS_FAILED(rv) || !uri) return E_FAIL; nsCAutoString prePath; rv = uri->GetPrePath(prePath); - if (NS_SUCCEEDED(rv)) + if (NS_FAILED(rv)) return E_FAIL; nsCAutoString path; rv = uri->GetPath(path); - if (NS_SUCCEEDED(rv)) + if (NS_FAILED(rv)) return E_FAIL; nsAutoString stringURI;