ThinkGeo.com    |     Documentation    |     Premium Support

Random ThinkGeo.Core exception

Hello,

I’m currently working on an application using ThinkGeo.UI.Wpf version 13.1.0.
Occasionally, when using the map’s Pan/Zoom tool the application will crash with the following error.

System.NullReferenceException: Object reference not set to an instance of an object.
at EhU=.ixw=.kBw=(Byte[] wkb)
at ThinkGeo.Core.Feature.GetBoundingBoxCore()
at ThinkGeo.Core.FeatureSource.GetBoundingBoxCore()
at ThinkGeo.Core.FeatureSource.GetBoundingBox()
at ThinkGeo.Core.LayerOverlay.GetBoundingBoxCore()
at ThinkGeo.Core.Overlay.GetBoundingBox()
at ThinkGeo.Core.PanZoomBarMapTool.M0Q=(Object sender, MouseButtonEventArgs e)

Do you have any thoughts as to why this might occur?
I haven’t been successful in recreating the error with any consistency unfortunately.

Thanks in advance.

Aaron

Hi Aaron,

It seems you are using LayerOverlay in the map, and some features in one of the FeatureLayer in that LayerOverlay is null. Can you double check that? Can you send over a code snippet about that FeatureLayer if you still see the issue?

Thanks,
Ben