diff --git a/src/main/java/com/chint/application/queryies/OrderQuery.java b/src/main/java/com/chint/application/queryies/OrderQuery.java index 0d5233a5..e08ebf6f 100644 --- a/src/main/java/com/chint/application/queryies/OrderQuery.java +++ b/src/main/java/com/chint/application/queryies/OrderQuery.java @@ -276,6 +276,7 @@ public class OrderQuery { List carLocationList = legItems .stream() .filter(leg -> leg.getLegType().equals(LEG_TYPE_TAXI)) + .filter(leg -> leg.getLegExtensionField() != null && leg.getLegExtensionField().getLocationList() != null) .flatMap(leg -> leg.getLegExtensionField().getLocationList().stream()) .map(LocationRes::copyFrom) .toList();