diff --git a/main/src/main/java/org/mobilitydata/gtfsvalidator/validator/ShapeToStopMatchingValidator.java b/main/src/main/java/org/mobilitydata/gtfsvalidator/validator/ShapeToStopMatchingValidator.java index 43b09c30c7..ffe27b49f4 100644 --- a/main/src/main/java/org/mobilitydata/gtfsvalidator/validator/ShapeToStopMatchingValidator.java +++ b/main/src/main/java/org/mobilitydata/gtfsvalidator/validator/ShapeToStopMatchingValidator.java @@ -174,6 +174,10 @@ private void reportProblems( Set reportedStopIds, NoticeContainer noticeContainer) { for (Problem problem : problems) { + if (problem.getStopTime().stopId().isEmpty()) { + // Ignore stop times without a stop_id + continue; + } if (problem.getType().equals(ProblemType.STOP_TOO_FAR_FROM_SHAPE) && !reportedStopIds.add(problem.getStopTime().stopId())) { // Ignore stops already reported before.