Index: /FCKeditor/trunk/editor/_source/commandclasses/fckindentcommands.js
===================================================================
--- /FCKeditor/trunk/editor/_source/commandclasses/fckindentcommands.js	(revision 836)
+++ /FCKeditor/trunk/editor/_source/commandclasses/fckindentcommands.js	(revision 837)
@@ -90,4 +90,7 @@
 		var path = new FCKElementPath( startContainer ) ;
 		var firstBlock = path.Block || path.BlockLimit ;
+		if ( !firstBlock )
+			return FCK_TRISTATE_DISABLED ;
+
 		if ( FCKIndentCommand._UseIndentClasses )
 		{
@@ -178,9 +181,10 @@
 		while ( endContainer && ! endContainer.nodeName.IEquals( ['li', 'ul', 'ol'] ) )
 			endContainer = endContainer.parentNode ;
+
+		if ( ! startContainer || ! endContainer )
+			return ;
+
 		range.SetStart( startContainer, 1 ) ;
 		range.SetEnd( endContainer, 2 ) ;
-
-		if ( ! startContainer || ! endContainer )
-			return ;
 
 		// Now we can iterate over the individual items.
Index: /FCKeditor/trunk/fckconfig.js
===================================================================
--- /FCKeditor/trunk/fckconfig.js	(revision 836)
+++ /FCKeditor/trunk/fckconfig.js	(revision 837)
@@ -40,5 +40,5 @@
 FCKConfig.StartupShowBlocks = false ;
 
-FCKConfig.Debug = true ;
+FCKConfig.Debug = false ;
 FCKConfig.AllowQueryStringDebug = true ;
 
