﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
14640	user agent Uncaught TypeError: Cannot read property '1' of null	André B.		"Hi There,

I got a bad issue with some user agent that got the ""applewebkit/"" word without the version number on it (for example : ""mozilla/5.0 (linux; u; android 5.1.1; fr-fr; sm-g925f build/lmy47x) applewebkit/""), I got some other user agent in this case, but this one is a good example I suppose.

The code is trying to get a version number with a regexp, and try to get the first item.

{{{
// line 297 for version 4.5.9 revision a35abfe
b.webkit && (c = parseFloat(a.match(/ applewebkit\/(\d+)/)[1]));
}}}

== Expected result ==
No javascript error

== Actual result ==
Uncaught TypeError: Cannot read property '1' of null

== Other details (browser, OS, CKEditor version, installed plugins) ==
You can try this issue on the demo page :
http://ckeditor.com/demo
Just add the given user agent to the console emulator and you should get the same issue. (mozilla/5.0 (linux; u; android 5.1.1; fr-fr; sm-g925f build/lmy47x) applewebkit/)

I am actually using the 4.4.7 version, but the issue is the same with the latest version.

Best,
André."	Bug	confirmed	Normal		General	4.0			
