Merge pull request #470 from Orbiter/master
prevent double-lookup of a propertyName from router
This commit is contained in:
commit
8a25c617b1
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue