| algo-zkd/src/main/java/com/algo/util/PathTimeCalculator.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
algo-zkd/src/main/java/com/algo/util/PathTimeCalculator.java
@@ -152,7 +152,7 @@ */ private double calculateTurnTime(PathCode fromCode, PathCode toCode, CTUPhysicalConfig config) { //增加空校验,提高代码健壮性 if (fromCode == null || toCode == null){ if (fromCode == null || toCode == null ||fromCode.getDirection() ==null ||toCode.getDirection() ==null){ return 0.0; } if (fromCode.getDirection().equals(toCode.getDirection())) {