From 53f7d706b7fad6e3bb12a14de266e78e5767d1d8 Mon Sep 17 00:00:00 2001 From: Hubert goEuropa Date: Mon, 9 Dec 2019 22:00:36 +0100 Subject: [PATCH] Fixed issue #227. --- .../java/org/onebusaway/api/model/transit/BeanFactoryV2.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/onebusaway-api-core/src/main/java/org/onebusaway/api/model/transit/BeanFactoryV2.java b/onebusaway-api-core/src/main/java/org/onebusaway/api/model/transit/BeanFactoryV2.java index 9ecc7755f5..ce28f99412 100644 --- a/onebusaway-api-core/src/main/java/org/onebusaway/api/model/transit/BeanFactoryV2.java +++ b/onebusaway-api-core/src/main/java/org/onebusaway/api/model/transit/BeanFactoryV2.java @@ -801,9 +801,9 @@ public StopWithArrivalsAndDeparturesV2Bean getStopWithArrivalAndDepartures( List ads = new ArrayList(); for (ArrivalAndDepartureBean ad : sad.getArrivalsAndDepartures()) { - if(ad.isPredicted() && ad.getPredictedArrivalTime() == 0 && ad.getNumberOfStopsAway() < 0) + if(ad.isPredicted() && ad.getPredictedArrivalTime() == 0 && ad.getNumberOfStopsAway() < 0) continue; - ads.add(getArrivalAndDeparture(ad)); + ads.add(getArrivalAndDeparture(ad)); } bean.setArrivalsAndDepartures(ads);