JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.0.1
[ckeditor.git] / _source / plugins / selection / plugin.js
index e7c24b7..747d3f5 100644 (file)
@@ -678,7 +678,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                                        {\r
                                                node = sel.anchorNode;\r
 \r
-                                               if ( node.nodeType != 1 )\r
+                                               if ( node && node.nodeType != 1 )\r
                                                        node = node.parentNode;\r
                                        }\r
                        }\r