commit | 5dfd28055043f52c8089d2b26e101de1f66838c8 | [log] [tgz] |
---|---|---|
author | Jean-Baptiste Queru <jbq@google.com> | Wed Sep 05 11:41:18 2012 -0700 |
committer | android code review <noreply-gerritcodereview@google.com> | Wed Sep 05 11:41:18 2012 -0700 |
tree | bdb2eef591889d3387014a656b346a188486eb86 | |
parent | f4aee7bd601621d648044a0f918247fd81b6190a [diff] | |
parent | a7f1721675b8b6e0389732f1e25788012f7c20b7 [diff] |
Merge "Null pointer check missing in chromium"
diff --git a/net/disk_cache/backend_impl.cc b/net/disk_cache/backend_impl.cc index 117f20b..81c44d5 100644 --- a/net/disk_cache/backend_impl.cc +++ b/net/disk_cache/backend_impl.cc
@@ -1484,7 +1484,13 @@ new_eviction_ = false; disabled_ = true; - data_->header.crash = 0; +#ifdef ANDROID + if (data_) { +#endif + data_->header.crash = 0; +#ifdef ANDROID + } +#endif index_ = NULL; data_ = NULL; block_files_.CloseFiles();