Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Unified Diff: Source/WebCore/inspector/InspectorDOMAgent.cpp

Issue 7280007: Merge 90013 - 2011-06-29 Pavel Feldman <pfeldman@google.com> (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/782/
Patch Set: Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/WebCore/inspector/InspectorDOMAgent.cpp
===================================================================
--- Source/WebCore/inspector/InspectorDOMAgent.cpp (revision 90016)
+++ Source/WebCore/inspector/InspectorDOMAgent.cpp (working copy)
@@ -589,7 +589,13 @@
return;
}
- const NamedNodeMap* attrMap = toHTMLElement(parsedElement->firstChild())->attributes(true);
+ Node* child = parsedElement->firstChild();
+ if (!child) {
+ *errorString = "Could not parse value as attributes.";
+ return;
+ }
+
+ const NamedNodeMap* attrMap = toHTMLElement(child)->attributes(true);
if (!attrMap) {
element->removeAttribute(name, ec);
if (ec)
« no previous file with comments | « LayoutTests/inspector/elements/set-attribute.html ('k') | Source/WebCore/inspector/front-end/ElementsTreeOutline.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698