Select to view content in your preferred language

EditVertices gives NullReferenceException

505
3
10-20-2010 07:59 AM
LukasPlatz
Emerging Contributor
Following steps cause a NullReferenceException!

1. There are two Polygons on a Graphics Layer P1 and P2
2. Switch to EditVertices Mode
3. Delete a Node in P1 with double-click on node
4. Click on other Polygon P2 to terminate the EditVertices Mode
-> NullReferenceException
0 Kudos
3 Replies
JenniferNery
Esri Regular Contributor
I am not able to reproduce this. What I get instead is that the two polygons get activated for editing, which is a bug and will be fixed in the future release. 

Regarding the NullReference exception, what version are you using? I tried to do the same with the samples from http://esriurl.com/slsdk2. Can you also share a code snippet of how you are adding Editor or EditorWidget to do EditVertices?

Thanks.
0 Kudos
LukasPlatz
Emerging Contributor
With the Silverlight Version, there is no exception but both polygons are selected.

http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#ToolkitEditorWidget

I forgot to mention that I use the WPF control, v2.1.401
Using WPF, an exception arises some secons after selecting both polygons.
0 Kudos
JenniferNery
Esri Regular Contributor
I was able to reproduce this when after clicking onto the second polygon to edit it, and then you double-click to the first polygon whose vertex was just deleted.  This bug will be fixed in the future release.  It will be avoided by ensuring that there can never be more than one feature for edit at one time.

Thanks.
0 Kudos