Forgot to include these nil checks in my previous checkin.
authorjusting <justing@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 24 Mar 2007 01:18:25 +0000 (01:18 +0000)
committerjusting <justing@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 24 Mar 2007 01:18:25 +0000 (01:18 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@20457 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/editing/ReplaceSelectionCommand.cpp

index 346460ccc43c254e940cf86d3f34fcfa84b18a9d..f5b9f6b1729bcc85a526b3fbf224ed8f63d74d8a 100644 (file)
@@ -129,12 +129,12 @@ bool ReplacementFragment::isEmpty() const
 
 Node *ReplacementFragment::firstChild() const 
 { 
-    return m_fragment->firstChild()
+    return m_fragment ? m_fragment->firstChild() : 0
 }
 
 Node *ReplacementFragment::lastChild() const 
 { 
-    return m_fragment->lastChild()
+    return m_fragment ? m_fragment->lastChild() : 0
 }
 
 void ReplacementFragment::removeNodePreservingChildren(Node *node)