We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm getting an occasional error when clearing a features collection using mySource.getFeaturesCollection().clear();
mySource.getFeaturesCollection().clear();
The following GeoExt code calls this.findBy:
this.findBy
geoext/src/data/store/Features.js
Lines 215 to 219 in e2cd3d3
Then in Ext.data.AbstractStore this.getData() returns null resulting in TypeError: Cannot read properties of null (reading 'findIndexBy')
Ext.data.AbstractStore
this.getData()
TypeError: Cannot read properties of null (reading 'findIndexBy')
findBy: function(fn, scope, start) { return this.getData().findIndexBy(fn, scope, start); },
The simple fix is to add a check to onOlCollectionRemove to exit if this.getData() is null, however I'll try to see why null is returned.
onOlCollectionRemove
The text was updated successfully, but these errors were encountered:
geographika
No branches or pull requests
I'm getting an occasional error when clearing a features collection using
mySource.getFeaturesCollection().clear();
The following GeoExt code calls
this.findBy
:geoext/src/data/store/Features.js
Lines 215 to 219 in e2cd3d3
Then in
Ext.data.AbstractStore
this.getData()
returns null resulting inTypeError: Cannot read properties of null (reading 'findIndexBy')
The simple fix is to add a check to
onOlCollectionRemove
to exit ifthis.getData()
is null, however I'll try to see why null is returned.The text was updated successfully, but these errors were encountered: