{"action":"created","issue":{"url":"https://api.github.com/repos/CUAHSI/HydroDesktop/issues/43","repository_url":"https://api.github.com/repos/CUAHSI/HydroDesktop","labels_url":"https://api.github.com/repos/CUAHSI/HydroDesktop/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/CUAHSI/HydroDesktop/issues/43/comments","events_url":"https://api.github.com/repos/CUAHSI/HydroDesktop/issues/43/events","html_url":"https://github.com/CUAHSI/HydroDesktop/issues/43","id":249512125,"number":43,"title":"NRE Exception in SearchLayerModifier","user":{"login":"xhqiao89","id":13894631,"avatar_url":"https://avatars3.githubusercontent.com/u/13894631?v=4","gravatar_id":"","url":"https://api.github.com/users/xhqiao89","html_url":"https://github.com/xhqiao89","followers_url":"https://api.github.com/users/xhqiao89/followers","following_url":"https://api.github.com/users/xhqiao89/following{/other_user}","gists_url":"https://api.github.com/users/xhqiao89/gists{/gist_id}","starred_url":"https://api.github.com/users/xhqiao89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xhqiao89/subscriptions","organizations_url":"https://api.github.com/users/xhqiao89/orgs","repos_url":"https://api.github.com/users/xhqiao89/repos","events_url":"https://api.github.com/users/xhqiao89/events{/privacy}","received_events_url":"https://api.github.com/users/xhqiao89/received_events","type":"User","site_admin":false},"labels":[{"id":666345876,"url":"https://api.github.com/repos/CUAHSI/HydroDesktop/labels/CodePlex","name":"CodePlex","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-08-11T00:27:33Z","updated_at":"2017-08-11T00:28:14Z","closed_at":null,"body":"<b>jirikadlec2[CodePlex]</b> <br />I was testing the data export and selection functionality and found the following exception:\r\n\r\n\r\nSteps to duplicate:\r\n\r\nIn search, select area - countries - USA and Data Sources - Christina River Critical Zone Observatory\r\nselect some sites and download data Use the Map tab select tool to select one site with downloaded data in the map\r\nRight - click on the Christina River Basin Critical Zone Observatory and choose Data - Export Data in the context menu\r\nIn the dialog choose quotSelecte featuresquot option, click OK Click OK in the Do you want to load the shapefile? message The unhandled exception is shown:\r\n\r\n************** Exception Text ************** \r\nSystem.NullReferenceException: Object reference not set to an instance of an object.\r\n\r\nat HydroDesktop.DataDownload.SearchLayersProcessing.SearchLayerModifier.UpdateSymbolizing(IFeatureLayer layer) in F:\\dev\\HydroDesktop\\Source\\DataDownload\\DataDownload\\SearchLayersProcessing\\SearchLayerModifier.cs:line 262\r\n\r\nat HydroDesktop.DataDownload.SearchLayersProcessing.SearchLayerModifier.AddCustomFeaturesToSearchLayer(IFeatureLayer layer) in F:\\dev\\HydroDesktop\\Source\\DataDownload\\DataDownload\\SearchLayersProcessing\\SearchLayerModifier.cs:line 81\r\n\r\nat HydroDesktop.DataDownload.DataDownloadPlugin.AttachLayerToPlugin(ILayer layer) in F:\\dev\\HydroDesktop\\Source\\DataDownload\\DataDownload\\DataDownloadPlugin.cs:line 201\r\n\r\nat HydroDesktop.DataDownload.DataDownloadPlugin.Map_LayerAdded(Object sender, LayerEventArgs e) in F:\\dev\\HydroDesktop\\Source\\DataDownload\\DataDownload\\DataDownloadPlugin.cs:line 190\r\n\r\nat DotSpatial.Symbology.Group.OnLayerAdded(Object sender, LayerEventArgs e) in F:\\dev\\DotSpatial\\DotSpatial.Symbology\\Group.cs:line 602\r\n\r\nat DotSpatial.Symbology.Group.Layers_LayerAdded(Object sender, LayerEventArgs e) in F:\\dev\\DotSpatial\\DotSpatial.Symbology\\Group.cs:line 592\r\n\r\nat DotSpatial.Symbology.LayerEventList1.OnLayerAdded(Object sender, LayerEventArgs e) in F:\\dev\\DotSpatial\\DotSpatial.Symbology\\LayerEventList.cs:line 305\r\n\r\nat DotSpatial.Symbology.LayerEventList1.OnIncludeComplete(T item) in F:\\dev\\DotSpatial\\DotSpatial.Symbology\\LayerEventList.cs:line 186\r\n\r\nat DotSpatial.Serialization.BaseList`1.DoInsert(Int32 index, T item) in F:\\dev\\DotSpatial\\DotSpatial.Serialization\\BaseList.cs:line 122\r\n\r\nat DotSpatial.Controls.MapLayerCollection.Insert(Int32 index, IMapLayer item) in F:\\dev\\DotSpatial\\DotSpatial.Controls\\MapLayerCollection.cs:line 297\r\n\r\nat DotSpatial.Controls.MapGroup.Insert(Int32 index, ILayer layer) in F:\\dev\\DotSpatial\\DotSpatial.Controls\\MapGroup.cs:line 181\r\n\r\nat DotSpatial.Symbology.Forms.FeatureLayerEventReceiver.LoadFeatureSetAsLayer(FeatureLayerEventArgs e, FeatureSet fs, String newLayerName) in F:\\dev\\DotSpatial\\DotSpatial.Symbology.Forms\\FeatureLayerEventReceiver.cs:line 113\r\n\r\nat DotSpatial.Symbology.Forms.FeatureLayerEventReceiver.ExportDataClicked(Object sender, FeatureLayerEventArgs e) in F:\\dev\\DotSpatial\\DotSpatial.Symbology.Forms\\FeatureLayerEventReceiver.cs:line 152\r\n\r\nat DotSpatial.Symbology.FeatureLayerEventSender.Raise_ExportData(Object sender, FeatureLayerEventArgs e) in F:\\dev\\DotSpatial\\DotSpatial.Symbology\\FeatureLayerEventSender.cs:line 138\r\n\r\nat DotSpatial.Symbology.FeatureLayer.OnExportData() in F:\\dev\\DotSpatial\\DotSpatial.Symbology\\FeatureLayer.cs:line 2086\r\n\r\nat DotSpatial.Symbology.Layer.ExportDataClick(Object sender, EventArgs e) in F:\\dev\\DotSpatial\\DotSpatial.Symbology\\Layer.cs:line 425\r\n\r\nat System.Windows.Forms.MenuItem.OnClick(EventArgs e) \r\nat System.Windows.Forms.MenuItem.MenuItemData.Execute() \r\nat System.Windows.Forms.Command.Invoke() \r\nat System.Windows.Forms.Command.DispatchID(Int32 id) \r\nat System.Windows.Forms.Control.WmCommand(Messageamp m) \r\nat System.Windows.Forms.Control.WndProc(Messageamp m) \r\nat System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Messageamp m) \r\nat System.Windows.Forms.Control.ControlNativeWindow.WndProc(Messageamp m) \r\nat System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr \r\n"},"comment":{"url":"https://api.github.com/repos/CUAHSI/HydroDesktop/issues/comments/321707900","html_url":"https://github.com/CUAHSI/HydroDesktop/issues/43#issuecomment-321707900","issue_url":"https://api.github.com/repos/CUAHSI/HydroDesktop/issues/43","id":321707900,"user":{"login":"xhqiao89","id":13894631,"avatar_url":"https://avatars3.githubusercontent.com/u/13894631?v=4","gravatar_id":"","url":"https://api.github.com/users/xhqiao89","html_url":"https://github.com/xhqiao89","followers_url":"https://api.github.com/users/xhqiao89/followers","following_url":"https://api.github.com/users/xhqiao89/following{/other_user}","gists_url":"https://api.github.com/users/xhqiao89/gists{/gist_id}","starred_url":"https://api.github.com/users/xhqiao89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xhqiao89/subscriptions","organizations_url":"https://api.github.com/users/xhqiao89/orgs","repos_url":"https://api.github.com/users/xhqiao89/repos","events_url":"https://api.github.com/users/xhqiao89/events{/privacy}","received_events_url":"https://api.github.com/users/xhqiao89/received_events","type":"User","site_admin":false},"created_at":"2017-08-11T00:28:14Z","updated_at":"2017-08-11T00:28:14Z","body":"<b>jirikadlec2[CodePlex]</b> <br />DotSpatial bug, still present in DotSpatial 1.2. \r\nUsing Export data menu is not a common task, therefore moving this item to version 2.0\r\n\r\nThe workaround is not to add the exported layer to the map, but to save it as a shapefile and then add the shapefile to the map.\r\n"}}
{"actor":{"display_login":"xhqiao89"}}