| Index: Source/core/editing/IndentOutdentCommand.cpp
 | 
| diff --git a/Source/core/editing/IndentOutdentCommand.cpp b/Source/core/editing/IndentOutdentCommand.cpp
 | 
| index 3df05003cb3b2196cf6ae4c97585231da7ac8a77..65aaaf31c9518a5ac9957d89f814aff1857193e0 100644
 | 
| --- a/Source/core/editing/IndentOutdentCommand.cpp
 | 
| +++ b/Source/core/editing/IndentOutdentCommand.cpp
 | 
| @@ -62,7 +62,7 @@ bool IndentOutdentCommand::tryIndentingAsListItem(const Position& start, const P
 | 
|      RefPtr<Element> selectedListItem = enclosingBlock(lastNodeInSelectedParagraph.get());
 | 
|  
 | 
|      // FIXME: we need to deal with the case where there is no li (malformed HTML)
 | 
| -    if (!isHTMLLIElement(*selectedListItem))
 | 
| +    if (!selectedListItem || !isHTMLLIElement(*selectedListItem))
 | 
|          return false;
 | 
|  
 | 
|      // FIXME: previousElementSibling does not ignore non-rendered content like <span></span>.  Should we?
 | 
| 
 |