1

Closed

Opening a project with a layer with no DataSet causes NullReferenceException

description

The problem is that the dataset is null when I load the brutile layer.
 
How I can change the code from the MapFrameProjectionHelper.cs
 
My sugestion:
 
 
 
        //parse the projection
        ProjectionInfo newProjection = ProjectionInfo.FromEsriString(newProjEsriString);
 
        foreach (IMapLayer layer in mapFrame.GetAllLayers())
        {
            if (layer.CanReproject)
            {
                layer.Reproject(newProjection);
            }
        }
Closed Jul 19, 2012 at 5:31 PM by mudnug

comments

wrote Jul 19, 2012 at 5:31 PM

Resolved with changeset 68058: Fix: Opening a project with a layer with no DataSet causes NullReferenceException