Index: third_party/WebKit/Source/core/html/HTMLTableElement.cpp |
diff --git a/third_party/WebKit/Source/core/html/HTMLTableElement.cpp b/third_party/WebKit/Source/core/html/HTMLTableElement.cpp |
index 6f608f4bb99e79502b2d532a1ed7e522b4ed3398..23cfa78d85d8d39b1c60229ae08aadf51b00091a 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLTableElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLTableElement.cpp |
@@ -234,6 +234,8 @@ void HTMLTableElement::deleteRow(int index, ExceptionState& exceptionState) { |
int i = 0; |
if (index == -1) { |
row = HTMLTableRowsCollection::lastRow(*this); |
+ if (!row) |
+ return; |
} else { |
for (i = 0; i <= index; ++i) { |
row = HTMLTableRowsCollection::rowAfter(*this, row); |