Index: /FCKeditor/trunk/_whatsnew.html
===================================================================
--- /FCKeditor/trunk/_whatsnew.html	(revision 2777)
+++ /FCKeditor/trunk/_whatsnew.html	(revision 2778)
@@ -114,4 +114,7 @@
 			problems with FCKDomRangeIterator class which causes some commands to hang when applied to certain
 			document structures.</li>
+		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2649">#2649</a>] Fixed a JavaScript error
+			in IE when user tries to search with the "Match whole word" option enabled and the matched word is
+			at exactly the end of document.</li>
 	</ul>
 	<p>
Index: /FCKeditor/trunk/editor/dialog/fck_replace.html
===================================================================
--- /FCKeditor/trunk/editor/dialog/fck_replace.html	(revision 2777)
+++ /FCKeditor/trunk/editor/dialog/fck_replace.html	(revision 2778)
@@ -143,5 +143,5 @@
 
 		this._textNode = curNode ;
-		this._offset = curNode.length - 1 ;
+		this._offset = curNode && curNode.length - 1 ;
 		return crossed ;
 	},
@@ -421,4 +421,6 @@
 function CheckIsWordSeparator( c )
 {
+	if ( !c )
+		return true;
 	var code = c.charCodeAt( 0 );
 	if ( code >= 9 && code <= 0xd )
