﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
6752	Null pointer exception in selection/plugin.js	Ron Lussier		"This happens for me, probably as a result of one or more custom plugins or skins I've written.  The fix seems fairly easy, however, so I'm hoping that I can get you to incorporate it.

The following code is at the end of the selection plugin:

{{{
var selection = this.document.getSelection().getNative();
selection.removeAllRanges();
selection.addRange( nativeRange );
}}}

I'm seeing an error because 'selection' is null when the CKEditor is initialized.  Adding a check as follows fixes the problem:


{{{
var selection = this.document.getSelection().getNative();
if (selection) {
   selection.removeAllRanges();
   selection.addRange( nativeRange );
}
}}}

I've attached my skin and custom plugins, just in case it helps you to confirm this.
"	Bug	closed	Normal		General	3.4.2	invalid		rlussier@…
