Index: Source/core/editing/InsertListCommand.cpp |
diff --git a/Source/core/editing/InsertListCommand.cpp b/Source/core/editing/InsertListCommand.cpp |
index 15ea47e3d99d2463f155f9cea796339351bc8784..649185cd26d234e4ea349b36906c939c159fb9c4 100644 |
--- a/Source/core/editing/InsertListCommand.cpp |
+++ b/Source/core/editing/InsertListCommand.cpp |
@@ -221,7 +221,7 @@ void InsertListCommand::doApplyForSingleParagraph(bool forceCreateList, const Qu |
insertNodeBefore(newList, listNode); |
Node* firstChildInList = enclosingListChild(VisiblePosition(firstPositionInNode(listNode.get())).deepEquivalent().deprecatedNode(), listNode.get()); |
- Node* outerBlock = firstChildInList->isBlockFlowElement() ? firstChildInList : listNode.get(); |
+ Node* outerBlock = firstChildInList ? firstChildInList->isBlockFlowElement() ? firstChildInList : listNode.get() : listNode.get(); |
yoichio
2014/02/26 07:26:30
Please use braces to split the scope of two ternar
arpitab_
2014/02/26 08:08:59
Done.
|
moveParagraphWithClones(VisiblePosition(firstPositionInNode(listNode.get())), VisiblePosition(lastPositionInNode(listNode.get())), newList.get(), outerBlock); |