diff --git a/apps/spreadsheeteditor/mobile/app/controller/add/AddFunction.js b/apps/spreadsheeteditor/mobile/app/controller/add/AddFunction.js index 97dccd5a6..eb584ee89 100644 --- a/apps/spreadsheeteditor/mobile/app/controller/add/AddFunction.js +++ b/apps/spreadsheeteditor/mobile/app/controller/add/AddFunction.js @@ -135,8 +135,8 @@ define([ type: _name, group: groupname, caption: func.asc_getLocaleName(), - args: jsonDesc[_name].a || '', - descr: jsonDesc[_name].d || '' + args: (jsonDesc && jsonDesc[_name]) ? jsonDesc[_name].a : '', + descr: (jsonDesc && jsonDesc[_name]) ? jsonDesc[_name].d : '' }; } }