Bug 666997 - Firefox Crash @ mozilla::net::nsPreloadedStream::AsyncWait() r=biesi

This commit is contained in:
Patrick McManus 2011-06-25 10:49:42 -04:00
parent 03e38d47bb
commit c7c89d6a3e

View File

@ -172,6 +172,9 @@ nsPreloadedStream::AsyncWait(nsIInputStreamCallback *aCallback,
return mStream->AsyncWait(aCallback, aFlags, aRequestedCount,
aEventTarget);
if (!aCallback)
return NS_OK;
if (!aEventTarget)
return aCallback->OnInputStreamReady(this);