From 2cf04ad98746543aa8af49e4acc2a63167bf58cd Mon Sep 17 00:00:00 2001 From: lulz1 Date: Thu, 30 May 2024 16:57:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E6=89=93=E8=BD=A6?= =?UTF-8?q?=E8=A1=8C=E7=A8=8B=E7=BC=BA=E5=A4=B1=E5=9C=B0=E7=82=B9=E8=80=8C?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/chint/application/queryies/OrderQuery.java | 1 + 1 file changed, 1 insertion(+) 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();