The deactivate method of the modify feature control calls the unselect method of its select feature control and passes it the current selected feature (if any). If that selected feature is destroyed between the time it was selected and the time the modify feature control is deactivated, the unselect method of the select feature control will attempt to draw it on the layer while it no longer has a geometry (it's destroyed!). This patch prevents this from happening. Thanks to tlpinney for reporting the bug and helping on its evaluation. r=tschaub (closes #1281) 
The deactivate method of the modify feature control calls the unselect method
of its select feature control and passes it the current selected feature (if
any). If that selected feature is destroyed between the time it was selected
and the time the modify feature control is deactivated, the unselect method of
the select feature control will attempt to draw it on the layer while it no
longer has a geometry (it's destroyed!). This patch prevents this from
happening. Thanks to tlpinney for reporting the bug and helping on its
evaluation. r=tschaub (closes #1281) 


git-svn-id: 86a4f41f9d0383640198789122b520d4105b319a@5897 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf

pgiraud/openlayers,richstoner/ol3,aisaacs/ol3,hafenr/ol3,boundlessgeo/openlayers,wet-boew/openlayers,jmiller-boundless/ol3,sanak/ol2,altamiracorp/openlayers,gingerik/ol3,kkuunnddaannkk/ol3,elbakai/openlayers,geonux/ol3,v5analytics/openlayers,avinet/openlayers,tschaub/openlayers-raster,ahocevar/ol2,Andrey-Pavlov/ol3,klokantech/ol3raster,t27/ol3,tamarmot/ol3,alexbrault/ol3,thhomas/ol3,richstoner/ol3,das-peter/ol3,mzur/ol3,elemoine/ol3,shevawen/openlayers,tamarmot/ol3,bjornharrtell/ol3,thhomas/ol3,shevawen/openlayers,landonb/ol3,bill-chadwick/ol3,elbakai/openlayers,antonio83moura/ol3,ahocevar/ol3,ahocevar/ol2,wlerner/ol3,stweil/ol3,alvinlindstam/ol3,tsauerwein/ol3,mzur/ol3,thomasmoelhave/ol3,landonb/ol3,kartverket/openlayers,llambanna/ol3,sbrunner/openlayers,thomasmoelhave/ol3,landonb/ol3,bogdanvaduva/ol3,thomasmoelhave/ol3,jacmendt/ol3,openlayers/ol2,alexbrault/ol3,CandoImage/ol3,yinxiaomei/ol3,WayTo/openlayers,oterral/ol3,NOAA-ORR-ERD/ol3,sanak/ol2,Gnafu/openlayers,openlayers/ol2,aisaacs/ol3,das-peter/ol3,xiaoqqchen/ol3,bill-chadwick/ol3,ahocevar/openlayers,shevawen/openlayers,kjelderg/ol3,Gnafu/openlayers,geekdenz/openlayers,alexbrault/ol3,mechdrew/ol3,gingerik/ol3,tschaub/ol3,fblackburn/ol3,bogdanvaduva/ol3,tschaub/ol3,Distem/ol3,wlerner/ol3,elbakai/openlayers,klokantech/ol3raster,sanak/ol2,fblackburn/ol3,adube/ol3,pmlrsg/ol3,klokantech/ol3raster,kjelderg/ol3,epointal/ol3,elbakai/openlayers,alexbrault/ol3,pvalsecc/openlayers,tsauerwein/ol3,pmlrsg/ol3,dracic/openlayers,fblackburn/ol3,adh1365/openlayers,v5analytics/openlayers,Distem/ol3,PetrDlouhy/openlayers,t27/ol3,gingerik/ol3,freylis/ol3,Morgul/ol3,boundlessgeo/openlayers,planetlabs/ol3,epointal/ol3,colllin/openlayers,llambanna/ol3,Morgul/ol3,alvinlindstam/ol3,PetrDlouhy/openlayers,kartverket/openlayers,avinet/openlayers,stweil/ol3,itayod/ol3,hafenr/ol3,adh1365/openlayers,tschaub/ol3,jmiller-boundless/ol3,geekdenz/openlayers,kkuunnddaannkk/ol3,xiaoqqchen/ol3,bartvde/ol3,aisaacs/ol3,shevawen/openlayers,antonio83moura/ol3,itayod/ol3,sbrunner/openlayers,adh1365/openlayers,openlayers/ol2,openlayers/openlayers,pgiraud/openlayers,landonb/ol3,llambanna/ol3,PetrDlouhy/openlayers,ahocevar/ol2,tschaub/openlayers-raster,colllin/openlayers,elemoine/ol3,fredj/ol3,PublicStuff/openlayers,jmiller-boundless/ol3,mechdrew/ol3,xiaoqqchen/ol3,fredj/ol3,denilsonsa/ol3,planetlabs/ol3,ahocevar/ol3,geoext/GXM,mzur/ol3,Antreasgr/ol3,mechdrew/ol3,fperucic/ol3,adh1365/openlayers,planetlabs/ol3,CandoImage/ol3,colllin/openlayers,stweil/openlayers,kkuunnddaannkk/ol3,geekdenz/ol3,georchestra/openlayers,bartvde/ol3,dracic/openlayers,kartverket/openlayers,PublicStuff/openlayers,pvalsecc/openlayers,Morgul/ol3,NOAA-ORR-ERD/ol3,adube/ol3,avinet/openlayers,klokantech/ol3raster,pgiraud/openlayers,xiaoqqchen/ol3,yinxiaomei/ol3,PetrDlouhy/openlayers,geoext/GXM,pvalsecc/openlayers,bartvde/ol3,epointal/ol3,Gnafu/openlayers,freylis/ol3,bill-chadwick/ol3,bogdanvaduva/ol3,wlerner/ol3,jmiller-boundless/ol3,richstoner/ol3,bjornharrtell/ol3,fredj/ol3,NOAA-ORR-ERD/ol3,oterral/ol3,Antreasgr/ol3,ahocevar/ol3,jacmendt/ol3,llambanna/ol3,owenmead/openlayers,stweil/openlayers,kjelderg/ol3,kartverket/openlayers,freylis/ol3,gingerik/ol3,geekdenz/ol3,owenmead/openlayers,t27/ol3,tamarmot/ol3,colllin/openlayers,klokantech/ol3,das-peter/ol3,CandoImage/ol3,openlayers/openlayers,georchestra/openlayers,altamiracorp/openlayers,PublicStuff/openlayers,dracic/openlayers,denilsonsa/ol3,tsauerwein/ol3,klokantech/ol3,ahocevar/ol3,Distem/ol3,altamiracorp/openlayers,Andrey-Pavlov/ol3,thhomas/ol3,klokantech/ol3,elemoine/ol3,sanak/ol2,sbrunner/openlayers,planetlabs/ol3,dracic/openlayers,itayod/ol3,geekdenz/ol3,t27/ol3,kjelderg/ol3,georchestra/openlayers,bill-chadwick/ol3,itayod/ol3,Antreasgr/ol3,wet-boew/openlayers,tschaub/openlayers-raster,Distem/ol3,yinxiaomei/ol3,geekdenz/openlayers,Antreasgr/ol3,boundlessgeo/openlayers,hafenr/ol3,Andrey-Pavlov/ol3,jmiller-boundless/ol3,stweil/openlayers,pmlrsg/ol3,mzur/ol3,owenmead/openlayers,Andrey-Pavlov/ol3,wlerner/ol3,sbrunner/openlayers,fperucic/ol3,WayTo/openlayers,owenmead/openlayers,fperucic/ol3,das-peter/ol3,thomasmoelhave/ol3,denilsonsa/ol3,geonux/ol3,hafenr/ol3,Gnafu/openlayers,antonio83moura/ol3,kkuunnddaannkk/ol3,pvalsecc/openlayers,openlayers/openlayers,jacmendt/ol3,fblackburn/ol3,antonio83moura/ol3,geonux/ol3,oterral/ol3,CandoImage/ol3,avinet/openlayers,WayTo/openlayers,geonux/ol3,ahocevar/openlayers,pgiraud/openlayers,elemoine/ol3,stweil/ol3,wet-boew/openlayers,richstoner/ol3,aisaacs/ol3,freylis/ol3,wet-boew/openlayers,tsauerwein/ol3,denilsonsa/ol3,bjornharrtell/ol3,geekdenz/ol3,alvinlindstam/ol3,pmlrsg/ol3,fperucic/ol3,bartvde/ol3,fredj/ol3,adube/ol3,ahocevar/openlayers,alvinlindstam/ol3,tschaub/ol3,stweil/ol3,yinxiaomei/ol3,altamiracorp/openlayers,klokantech/ol3,thhomas/ol3,epointal/ol3,NOAA-ORR-ERD/ol3,v5analytics/openlayers,tamarmot/ol3,v5analytics/openlayers,Morgul/ol3,bogdanvaduva/ol3,PublicStuff/openlayers,jacmendt/ol3,openlayers/ol2,mechdrew/ol3,boundlessgeo/openlayers,WayTo/openlayers