luxiaotao1123
9 天以前 3ad23ed4281aba7a0db52688d6ee318b9429f33e
algo-zkd/src/main/java/com/algo/util/PathTimeCalculator.java
@@ -151,6 +151,10 @@
     * 计算转向时间
     */
    private double calculateTurnTime(PathCode fromCode, PathCode toCode, CTUPhysicalConfig config) {
        //增加空校验,提高代码健壮性
        if (fromCode == null || toCode == null ||fromCode.getDirection() ==null ||toCode.getDirection() ==null){
           return 0.0;
        }
        if (fromCode.getDirection().equals(toCode.getDirection())) {
            return 0.0;
        }