Index: /FCKeditor/trunk/editor/_source/internals/fck_gecko.js
===================================================================
--- /FCKeditor/trunk/editor/_source/internals/fck_gecko.js	(revision 670)
+++ /FCKeditor/trunk/editor/_source/internals/fck_gecko.js	(revision 671)
@@ -204,5 +204,5 @@
 		FCK._FillEmptyBlock( FCK.EditorDocument.body.firstChild ) ;
 		var sel = FCK.EditorWindow.getSelection() ;
-		if ( sel.rangeCount < 1 )
+		if ( !sel || sel.rangeCount < 1 )
 			return ;
 		var range = sel.getRangeAt( 0 );
