webengine/osswebengine/WebCore/editing/InsertTextCommand.cpp
branchRCL_3
changeset 103 be5f8c9adf67
parent 0 dd21522fd290
--- a/webengine/osswebengine/WebCore/editing/InsertTextCommand.cpp	Wed Sep 15 13:25:15 2010 +0300
+++ b/webengine/osswebengine/WebCore/editing/InsertTextCommand.cpp	Wed Oct 13 15:46:58 2010 +0300
@@ -110,6 +110,8 @@
         startPosition = positionBeforeStartNode;
     if (!startPosition.isCandidate())
         startPosition = startPosition.downstream();
+    if(!startPosition.node())
+        return;
     
     // FIXME: This typing around anchor behavior doesn't exactly match TextEdit.  In TextEdit,
     // you won't be placed inside a link when typing after it if you've just placed the caret