partial fix for bug #364298: Crash [ @ BindStatementURI ] when pasting a folder from the history sidebar into the bookmarks toolbar

this turns the crash into a javascript exception, but we are still unable to copy and paste history folder into bookmarks.

r=dietrich
This commit is contained in:
sspitzer%mozilla.org 2007-06-19 16:34:32 +00:00
Родитель f621829989
Коммит 9abceef4fc
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -4756,6 +4756,8 @@ void GetSubstringFromNthDot(const nsCString& aInput, PRInt32 aStartingSpot,
nsresult BindStatementURI(mozIStorageStatement* statement, PRInt32 index,
nsIURI* aURI)
{
NS_ENSURE_ARG_POINTER(aURI);
nsCAutoString utf8URISpec;
nsresult rv = aURI->GetSpec(utf8URISpec);
NS_ENSURE_SUCCESS(rv, rv);