Hi,
Just to report, we occasionally get an error such as
com.google.gwt.core.client.JavaScriptException: (TypeError) : Cannot read property 'length' of undefined
from our quite complex app. We've traced it down to ListGrid.js:_remapEmbeddedComponents function:
These are lines 32881 - 32904 in ListGrid.js with smartgwt 5.0p lgpl latest nightly (2017-01-03). There actually seems to be a null check for "ids" first, but the second line ("ids.length == 0") fails without it.
Just to report, we occasionally get an error such as
com.google.gwt.core.client.JavaScriptException: (TypeError) : Cannot read property 'length' of undefined
from our quite complex app. We've traced it down to ListGrid.js:_remapEmbeddedComponents function:
Code:
if (this._shouldRetainEmbeddedComponents == false || (this.showRecordComponents && this.recordComponentPoolingMode == "data") || (component.isExpansionComponent) ) { if (currentRecord != null) { // This is essentially a dup of code form _removeEmbeddedComponent: var ids = currentRecord[this._$embeddedComponentsPrefix + this.ID]; if (ids != null && ids.length > 0) { ids.remove(component.getID()); } if (ids.length == 0) { currentRecord[this._$embeddedComponentsPrefix + this.ID] = null; } // remove the 'expanded' marker from the row if (component.isExpansionComponent) { this._setExpanded(currentRecord, false); this._setExpansionComponent(currentRecord, false); } } // remove the embeddedComponent from the grid body and rehash the properties // that track expandedRecords removeThese.add(component); }
Comment