Select to view content in your preferred language

System.NullReference Exception was unhandied by user code

546
1
05-05-2011 06:04 AM
FawnaNibert
New Contributor
I have a error code in my cs code.  when I go to debug the site and then use the State Select , Zoom to State, it takes me to the CS Code and shows me the error in the attached file below.

thanks for any help.
0 Kudos
1 Reply
JenniferNery
Esri Regular Contributor
Is the underlined line causing NullReference exception?

selectedFeatureExtent = selectedFeature.Geometry.Extent;


Please check that selectedFeature and selectedFeature.Geometry are not null. Also, it might be helpful to look at the StackTrace.
0 Kudos