LibWeb: Restore protection against empty HTMLImageElement resources
This if-statement was erroneously dropped in commit 8ff8309
.
This commit is contained in:
parent
365b2bf945
commit
e129c8049b
Notes:
sideshowbarker
2024-07-17 05:03:11 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/e129c8049b Pull-request: https://github.com/SerenityOS/serenity/pull/19140 Reviewed-by: https://github.com/nico ✅
1 changed files with 2 additions and 1 deletions
|
@ -512,7 +512,8 @@ after_step_6:
|
|||
handle_failed_fetch();
|
||||
};
|
||||
|
||||
response->body().value().fully_read(realm(), move(process_body), move(process_body_error), JS::NonnullGCPtr { realm().global_object() }).release_value_but_fixme_should_propagate_errors();
|
||||
if (response->body().has_value())
|
||||
response->body().value().fully_read(realm(), move(process_body), move(process_body_error), JS::NonnullGCPtr { realm().global_object() }).release_value_but_fixme_should_propagate_errors();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue