diff --git a/templates/default/tmpl/properties.tmpl b/templates/default/tmpl/properties.tmpl index dfa6ee0e..97a3d23a 100644 --- a/templates/default/tmpl/properties.tmpl +++ b/templates/default/tmpl/properties.tmpl @@ -5,7 +5,7 @@ var parentProp = null; props.forEach(function(prop, i) { if (!prop) { return; } - if ( parentProp && prop.name.indexOf(parentProp.name + '.') === 0 ) { + if ( parentProp && prop.name && prop.name.indexOf(parentProp.name + '.') === 0 ) { prop.name = prop.name.substr(parentProp.name.length+1); parentProp.subprops = parentProp.subprops || []; parentProp.subprops.push(prop);