зеркало из https://github.com/mozilla/pjs.git
Bug 336990 r=bryner Deleting a livemark causes bookmarks to disappear - make annotation service more tolerant of errors
Original committer: brettw%gmail.com Original revision: 1.15 Original date: 2006/06/19 16:23:56
This commit is contained in:
Родитель
45673f235e
Коммит
f2e9c5172c
|
@ -557,9 +557,12 @@ nsAnnotationService::GetPagesWithAnnotationCOMArray(
|
||||||
rv = statement->GetUTF8String(0, uristring);
|
rv = statement->GetUTF8String(0, uristring);
|
||||||
NS_ENSURE_SUCCESS(rv, rv);
|
NS_ENSURE_SUCCESS(rv, rv);
|
||||||
|
|
||||||
|
// convert to a URI, in case of some invalid URI, just ignore this row
|
||||||
|
// so we can mostly continue.
|
||||||
nsCOMPtr<nsIURI> uri;
|
nsCOMPtr<nsIURI> uri;
|
||||||
rv = NS_NewURI(getter_AddRefs(uri), uristring);
|
rv = NS_NewURI(getter_AddRefs(uri), uristring);
|
||||||
NS_ENSURE_SUCCESS(rv, rv);
|
if (NS_FAILED(rv))
|
||||||
|
continue;
|
||||||
PRBool added = aResults->AppendObject(uri);
|
PRBool added = aResults->AppendObject(uri);
|
||||||
NS_ENSURE_TRUE(added, NS_ERROR_OUT_OF_MEMORY);
|
NS_ENSURE_TRUE(added, NS_ERROR_OUT_OF_MEMORY);
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче