I'm trying to map an object (and it has worked before!) however, in this new application it seems to throw a NullReferenceException
that I don't seem to understand. Here is the code, can someone solve this issue and explain how this can happen?
private xRoute.Point ConvertXLocate2XRoute(xLocate.Point point)
{
xRoute.Point converted = new xRoute.Point();
//KML
converted.kml.kml = point.kml.kml;
converted.kml.wrappedPlacemarks = point.kml.wrappedPlacemarks;
//POINT
converted.point.x = point.point.x;
converted.point.y = point.point.y;
//WKB
converted.wkb = point.wkb;
//WKT
converted.wkt = point.wkt;
return converted;
}