diff options
author | michaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-07 01:01:29 +0000 |
---|---|---|
committer | michaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-07 01:01:29 +0000 |
commit | 084b3c4606dae11279a747f9493e7ddd1a54ab0c (patch) | |
tree | ee6fa20ab98a3470210ba9f8a0b018738b20b6dc /webkit/appcache | |
parent | 62d2a1159508500bd079f41f2169d8460566c342 (diff) | |
download | chromium_src-084b3c4606dae11279a747f9493e7ddd1a54ab0c.zip chromium_src-084b3c4606dae11279a747f9493e7ddd1a54ab0c.tar.gz chromium_src-084b3c4606dae11279a747f9493e7ddd1a54ab0c.tar.bz2 |
Fix a crashing bug.
BUG=40586
TEST=none
Review URL: http://codereview.chromium.org/1545022
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43793 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/appcache')
-rw-r--r-- | webkit/appcache/appcache_interceptor.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/webkit/appcache/appcache_interceptor.cc b/webkit/appcache/appcache_interceptor.cc index fc4be1d..e5f7747 100644 --- a/webkit/appcache/appcache_interceptor.cc +++ b/webkit/appcache/appcache_interceptor.cc @@ -29,9 +29,13 @@ void AppCacheInterceptor::SetExtraRequestInfo( if (!service || (host_id == kNoHostId)) return; + AppCacheBackendImpl* backend = service->GetBackend(process_id); + if (!backend) + return; + // TODO(michaeln): An invalid host id is indicative of bad data // from a child process. How should we handle that here? - AppCacheHost* host = service->GetBackend(process_id)->GetHost(host_id); + AppCacheHost* host = backend->GetHost(host_id); if (!host) return; |