TypeError: Error #1009: Il est impossible d'accéder à la propriété ou à la méthode d'une référence d'objet nul. at com.esri.ags.components::Editor/saveUnsavedAttributes()at com.esri.ags.components::Editor/attributeInspector_saveFeatureHandler() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent() at com.esri.ags.components::AttributeInspector/dispatchSaveFeatureEvent() at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/callLaterDispatcher2() at mx.core::UIComponent/callLaterDispatcher() TypeError: Error #1009: Il est impossible d'accéder à la propriété ou à la méthode d'une référence d'objet nul. at com.esri.ags.components::Editor/featureLayer_editsCompleteHandler() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent() at com.esri.ags.layers::FeatureLayer/http://www.esri.com/2008/ags/internal::editHandler() at mx.rpc::AsyncResponder/result() at com.esri.ags.tasks::FeatureLayerTask/handleApplyEdits() at Function/http://adobe.com/AS3/2006/builtin::call() at com.esri.ags.tasks::BaseTask/handleResultEvent() at mx.rpc::AsyncResponder/result() at mx.rpc::AsyncToken/http://www.adobe.com/2006/flex/mx/internal::applyResult() at mx.rpc.events::ResultEvent/http://www.adobe.com/2006/flex/mx/internal::callTokenResponders() at HTTPOperation/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent() at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler() at mx.rpc::Responder/result() at mx.rpc::AsyncRequest/acknowledge() at DirectHTTPMessageResponder/completeHandler() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/onComplete()
<esri:Editor id="mainEditor" map="{mainMap}" geometryService="{geometryService}" />protected function application_initializeHandler(event:FlexEvent):void { mainEditor.featureLayers = [arrets]; }Solved! Go to Solution.
Can you show how your are adding your layer in your code?
<esri:FeatureLayer id="arrets" url="http://serverIP:8399/arcgis/rest/services/myService/FeatureServer/0" />
Is the layer you are attempting to edit coming for an SDE enterprise geodatabase?