зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1647070 - part2 : address null image case. r=chunmin
The image container might be null, so we should handle this case properly as a fail case. Differential Revision: https://phabricator.services.mozilla.com/D80745
This commit is contained in:
Родитель
9262357476
Коммит
654853348d
|
@ -146,7 +146,7 @@ NS_IMETHODIMP FetchImageHelper::ImageFetchListener::OnImageReady(
|
|||
mChannel = nullptr;
|
||||
|
||||
MOZ_ASSERT(mHelper);
|
||||
if (NS_FAILED(aStatus)) {
|
||||
if (NS_FAILED(aStatus) || !aImage) {
|
||||
mHelper->HandleFetchFail();
|
||||
Clear();
|
||||
return aStatus;
|
||||
|
|
Загрузка…
Ссылка в новой задаче