| Index: Source/bindings/core/v8/ScriptStreamer.cpp
|
| diff --git a/Source/bindings/core/v8/ScriptStreamer.cpp b/Source/bindings/core/v8/ScriptStreamer.cpp
|
| index be5b7d2d2e508614395fd8020d769336f4e5489e..d93dc8d2265776035432f1815f03e131142437c5 100644
|
| --- a/Source/bindings/core/v8/ScriptStreamer.cpp
|
| +++ b/Source/bindings/core/v8/ScriptStreamer.cpp
|
| @@ -160,7 +160,8 @@ private:
|
| // BOM can only occur at the beginning of the data.
|
| ASSERT(lengthOfBOM == 0 || m_dataPosition == 0);
|
|
|
| - if (streamer->resource()->cachedMetadata(V8ScriptRunner::tagForCodeCache(streamer->resource()))) {
|
| + CachedMetadataHandler* cacheHandler = streamer->resource()->cacheHandler();
|
| + if (cacheHandler && cacheHandler->cachedMetadata(V8ScriptRunner::tagForCodeCache(cacheHandler))) {
|
| // The resource has a code cache, so it's unnecessary to stream and
|
| // parse the code. Cancel the streaming and resume the non-streaming
|
| // code path.
|
|
|