﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
7561	IE 'editor.getSelection()' is null or not an object	Michael Camden	Garry Yao	"This error is sometimes thrown in IE. It happens onClick and I've tracked it down to the following bit of code.

plugins/selection/plugin.js[[BR]]

{{{
Ln #215: editor.getSelection().getRanges()[ 0 ].select();
}}}

According to the documentation, and my observations, editor.getSelection() can return null. This statement should be wrapped in a conditional block to avoid calling .getRanges on a null object.

{{{
if((selection = editor.getSelection()) != null) {
   selection.getRanges()[ 0 ].select();
}
}}}

"	Bug	review_failed	Normal		Core : Selection	3.5.2		IE8 HasPatch IBM	mcamden@… satya_minnekanti@… tkrah@… joel.peltonen@…
