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:
parent
153899748b
commit
aacece58c5
1 changed files with 1 additions and 1 deletions
|
|
@ -393,8 +393,8 @@ public class VrpXMLReader{
|
||||||
String serviceLocationId = serviceConfig.getString("locationId");
|
String serviceLocationId = serviceConfig.getString("locationId");
|
||||||
builder.setLocationId(serviceLocationId);
|
builder.setLocationId(serviceLocationId);
|
||||||
Coordinate serviceCoord = getCoord(serviceConfig,"");
|
Coordinate serviceCoord = getCoord(serviceConfig,"");
|
||||||
builder.setCoord(serviceCoord);
|
|
||||||
if(serviceCoord != null){
|
if(serviceCoord != null){
|
||||||
|
builder.setCoord(serviceCoord);
|
||||||
if(serviceLocationId != null){
|
if(serviceLocationId != null){
|
||||||
vrpBuilder.addLocation(serviceLocationId,serviceCoord);
|
vrpBuilder.addLocation(serviceLocationId,serviceCoord);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue