Apparently expandName() can also return null - handle that too

This commit is contained in:
Nathan Gray 2013-09-09 21:39:31 +00:00
parent 2087aed7a3
commit 7b9b5efe7f

View File

@ -253,13 +253,13 @@ var et2_grid = et2_DOMWidget.extend([et2_IDetachedDOM, et2_IAligned],
var ident = content.expandName(value);
var regex = new RegExp("\\[" + content.perspectiveData.row + "\\]");
if(ident.match(regex))
if(ident != null && ident.match(regex))
{
rowData[rowIndex] = jQuery.extend({}, rowDataEntry);
content.perspectiveData.row = ++rowIndex;
regex = new RegExp("\\[" + content.perspectiveData.row + "\\]");
}
} while(ident.match(regex))
} while(ident != null && ident.match(regex))
return;
}
}