Commit c9b5f961 authored by Sergey.Konovalov's avatar Sergey.Konovalov

чтобы не падало, если не пришел documentTitle

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@65982 954022d7-b5bf-4e40-9824-e11837661b57
parent 5a830809
......@@ -590,7 +590,7 @@ var c_oAscImageUploadProp = {//Не все браузеры позволяют
* @constructor
*/
function GetFileExtension (sName) {
var nIndex = sName.lastIndexOf(".");
var nIndex = sName ? sName.lastIndexOf(".") : -1;
if (-1 != nIndex)
return sName.substring(nIndex + 1).toLowerCase();
return null;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment