Index: third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp |
diff --git a/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp |
index eb017f008f1094cd01ae0f8f84582aa3d2a731e7..34171461fdc36f5325885632efe96afb27f6b65a 100644 |
--- a/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp |
+++ b/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp |
@@ -430,6 +430,8 @@ static void cachedResourcesForDocument(Document* document, WillBeHeapVector<RawP |
const ResourceFetcher::DocumentResourceMap& allResources = document->fetcher()->allResources(); |
for (const auto& resource : allResources) { |
Resource* cachedResource = resource.value.get(); |
+ if (!cachedResource) |
+ continue; |
switch (cachedResource->type()) { |
case Resource::Image: |