Index: Source/core/rendering/RenderListItem.cpp |
diff --git a/Source/core/rendering/RenderListItem.cpp b/Source/core/rendering/RenderListItem.cpp |
index f8b1db2afea6a76657be72a990f20c98ca5e3569..0fe2c4fbb266b2cdfa5143607dfb767cb5378763 100644 |
--- a/Source/core/rendering/RenderListItem.cpp |
+++ b/Source/core/rendering/RenderListItem.cpp |
@@ -150,7 +150,8 @@ static RenderListItem* nextListItem(const Node* listNode, const RenderListItem* |
static RenderListItem* previousListItem(const Node* listNode, const RenderListItem* item) |
{ |
Node* current = item->node(); |
- for (current = ElementTraversal::previousIncludingPseudo(current, listNode); current; current = ElementTraversal::previousIncludingPseudo(current, listNode)) { |
+ ASSERT(current); |
+ for (current = ElementTraversal::previousIncludingPseudo(*current, listNode); current; current = ElementTraversal::previousIncludingPseudo(*current, listNode)) { |
RenderObject* renderer = current->renderer(); |
if (!renderer || (renderer && !renderer->isListItem())) |
continue; |