Commit 16b52281 authored by Hiroshige Hayashizaki's avatar Hiroshige Hayashizaki Committed by Commit Bot

Null-check |document_| in IncrementLoadEventDelayCount

After https://chromium-review.googlesource.com/720640, |document_|
is WeakPersistent and thus it should be null-checked before use.

Bug: 773571, 775090
Change-Id: I914b57071fa07288997162d8645bab4ded440032
Reviewed-on: https://chromium-review.googlesource.com/721681
Commit-Queue: Hiroshige Hayashizaki <hiroshige@chromium.org>
Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Reviewed-by: default avatarKouhei Ueno <kouhei@chromium.org>
Reviewed-by: default avatarYuzu Saijo <yuzus@chromium.org>
Reviewed-by: default avatarKeishi Hattori <keishi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#509567}
parent 5a064eaf
......@@ -26,7 +26,8 @@ IncrementLoadEventDelayCount::~IncrementLoadEventDelayCount() {
}
void IncrementLoadEventDelayCount::ClearAndCheckLoadEvent() {
document_->DecrementLoadEventDelayCountAndCheckLoadEvent();
if (document_)
document_->DecrementLoadEventDelayCountAndCheckLoadEvent();
document_ = nullptr;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment