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 346460c..f5b9f6b 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)