зеркало из https://github.com/mozilla/pjs.git
r=dveditz sr=mscott fixes 105781
-checking for a null channel where there should not be one
This commit is contained in:
Родитель
dfa8594725
Коммит
65c0c69a39
|
@ -825,8 +825,9 @@ nsXPInstallManager::OnProgress(nsIRequest* request, nsISupports *ctxt, PRUint32
|
|||
if (mDlg && !mCancelled && TimeToUpdate(now))
|
||||
{
|
||||
if (mContentLength < 1) {
|
||||
nsCOMPtr<nsIChannel> channel = do_QueryInterface(request);
|
||||
nsCOMPtr<nsIChannel> channel = do_QueryInterface(request,&rv);
|
||||
NS_ASSERTION(channel, "should have a channel");
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
rv = channel->GetContentLength(&mContentLength);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче