我正在尝试映射一个对象(它以前曾工作过!)但是,在这个新应用程序中,它似乎抛出了一个NullReferenceException
我似乎不明白的问题。这是代码,有人可以解决这个问题并解释这是怎么发生的吗?
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;
}