Merge pull request #470 from Orbiter/master

prevent double-lookup of a propertyName from router
This commit is contained in:
vshcherb 2013-07-23 03:04:01 -07:00
commit 8a25c617b1

View file

@ -91,8 +91,9 @@ public class RoutingConfiguration {
}
private String getAttribute(VehicleRouter router, String propertyName) {
if (router.containsAttribute(propertyName)) {
return router.getAttribute(propertyName);
String attr = router.getAttribute(propertyName);
if (attr != null) {
return attr;
}
return attributes.get(propertyName);
}