зеркало из https://github.com/mozilla/pjs.git
Fix for bug 58728. Null check for the disappearing mResponseDataListener. r=darin, sr=alecf.
This commit is contained in:
Родитель
32704d12d2
Коммит
1d3fb459be
|
@ -444,9 +444,11 @@ nsHTTPServerListener::OnDataAvailable(nsIChannel* channel,
|
|||
nsCOMPtr<nsIByteArrayInputStream> is;
|
||||
|
||||
nsresult rv1 =
|
||||
NS_NewByteArrayInputStream(getter_AddRefs(is) , strdup(cp) , mHeaderBuffer.Length()) ;
|
||||
NS_NewByteArrayInputStream(getter_AddRefs(is) , strdup(cp) ,
|
||||
mHeaderBuffer.Length()) ;
|
||||
|
||||
if (NS_SUCCEEDED(rv1))
|
||||
NS_ASSERTION(mResponseDataListener, "No data listener! Did we abort?");
|
||||
if (NS_SUCCEEDED(rv1) && mResponseDataListener)
|
||||
mResponseDataListener->OnDataAvailable(mChannel,
|
||||
mChannel->mResponseContext, is, 0, mHeaderBuffer.Length()) ;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче