rem: this.renderer.eraseGeometry(feature.geometry);  
add: if (feature.geometry) { this.renderer.eraseGeometry(feature.geometry); }  
context:     removeFeatures: function(features) {        if (!(features instanceof Array)) {            features = [features];        }        for (var i = features.length - 1; i >= 0; i--) {            var feature = features[i];            this.features = OpenLayers.Util.removeItem(this.features, feature);            this.renderer.eraseGeometry(feature.geometry);                        //in the case that this feature is one of the selected features,             // remove it from that array as well.            if (OpenLayers.Util.indexOf(this.selectedFeatures, feature) != -1){                OpenLayers.Util.removeItem(this.selectedFeatures, feature);            }        }    },
meta: 1027	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1027/9679dbb56c0c7836bf7b763e13010892fdf4a97e/Vector.js/buggy/lib/OpenLayers/Layer/Vector.js