Index: /FCKeditor/trunk/editor/_source/classes/fckdomrange.js
===================================================================
--- /FCKeditor/trunk/editor/_source/classes/fckdomrange.js	(revision 443)
+++ /FCKeditor/trunk/editor/_source/classes/fckdomrange.js	(revision 444)
@@ -280,4 +280,9 @@
 	CreateBookmark2 : function()
 	{
+		// If there is no range then get out of here.
+		// It happens on initial load in Safari #962 and if the editor it's hidden also in Firefox
+		if ( ! this._Range )
+			return { "Start" : 0, "End" : 0 } ;
+			
 		// First, we record down the offset values
 		var bookmark = 
Index: /FCKeditor/trunk/editor/_source/classes/fckdomrange_gecko.js
===================================================================
--- /FCKeditor/trunk/editor/_source/classes/fckdomrange_gecko.js	(revision 443)
+++ /FCKeditor/trunk/editor/_source/classes/fckdomrange_gecko.js	(revision 444)
@@ -30,5 +30,5 @@
 	var oSel = this.Window.getSelection() ;
 
-	if ( oSel.rangeCount > 0 )
+	if ( oSel && oSel.rangeCount > 0 )
 	{
 		this._Range = FCKW3CRange.CreateFromRange( this.Window.document, oSel.getRangeAt(0) ) ;
