Index: /FCKeditor/trunk/editor/_source/internals/fcktablehandler.js
===================================================================
--- /FCKeditor/trunk/editor/_source/internals/fcktablehandler.js	(revision 815)
+++ /FCKeditor/trunk/editor/_source/internals/fcktablehandler.js	(revision 816)
@@ -286,5 +286,5 @@
 		cellsUp++ ;
 	}
-	return { width : selectionWidth, height : selectionHeight, x : cellsLeft, y : cellsUp } ;
+	return { 'width' : selectionWidth, 'height' : selectionHeight, 'x' : cellsLeft, 'y' : cellsUp } ;
 }
 
@@ -410,5 +410,5 @@
 
 	var cellContents = FCK.EditorDocument.createDocumentFragment() ;
-	while ( nextCell.childNodes.length > 0 )
+	while ( nextCell && nextCell.childNodes && nextCell.childNodes.length > 0 )
 		cellContents.appendChild( nextCell.removeChild( nextCell.firstChild ) ) ;
 
@@ -432,5 +432,5 @@
 
 	var cellContents = refCell.ownerDocument.createDocumentFragment() ;
-	while ( nextCell.childNodes.length > 0 )
+	while ( nextCell && nextCell.childNodes && nextCell.childNodes.length > 0 )
 		cellContents.appendChild( nextCell.removeChild( nextCell.firstChild ) ) ;
 	if ( cellContents.firstChild )
@@ -832,5 +832,5 @@
 		return null ;
 
-	return { refCell : refCell, nextCell : nextCell, tableMap : tableMap } ;
+	return { 'refCell' : refCell, 'nextCell' : nextCell, 'tableMap' : tableMap } ;
 }
 
@@ -863,4 +863,4 @@
 		return null ;
 
-	return { refCell : refCell, nextCell : nextCell, tableMap : tableMap } ;
-}
+	return { 'refCell' : refCell, 'nextCell' : nextCell, 'tableMap' : tableMap } ;
+}
