Index: /FCKeditor/trunk/editor/_source/internals/fckselection_gecko.js
===================================================================
--- /FCKeditor/trunk/editor/_source/internals/fckselection_gecko.js	(revision 666)
+++ /FCKeditor/trunk/editor/_source/internals/fckselection_gecko.js	(revision 667)
@@ -67,5 +67,5 @@
 		{
 			// make the common case fast - for collapsed/nearly collapsed selections just return anchor.parent.
-			if ( oSel.anchorNode == oSel.focusNode )
+			if ( oSel.anchorNode == oSel.focusNode && oSel.anchorNode != null)
 				return oSel.anchorNode.parentNode ;
 
