1
0
Fork 0
mirror of https://github.com/graphhopper/jsprit.git synced 2020-01-24 07:45:05 +01:00

does not allow reader to set null coord

This commit is contained in:
Stefan Schroeder 2014-01-23 11:13:03 +01:00
parent 153899748b
commit aacece58c5

View file

@ -393,8 +393,8 @@ public class VrpXMLReader{
String serviceLocationId = serviceConfig.getString("locationId");
builder.setLocationId(serviceLocationId);
Coordinate serviceCoord = getCoord(serviceConfig,"");
builder.setCoord(serviceCoord);
if(serviceCoord != null){
builder.setCoord(serviceCoord);
if(serviceLocationId != null){
vrpBuilder.addLocation(serviceLocationId,serviceCoord);
}