Skip to content

Commit ea82244

Browse files
committed
fix: check if blockid is present
1 parent 6533a96 commit ea82244

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/src/main/java/org/mobilitydata/gtfsvalidator/validator/InconsistentRouteTypeForBlockIdValidator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public void validate(NoticeContainer noticeContainer) {
3333
.asMap()
3434
.forEach(
3535
(blockId, trips) -> {
36-
if (blockId != null) {
36+
if (blockId != null && !blockId.isEmpty()) {
3737
List<GtfsRouteType> routeTypes =
3838
trips.stream()
3939
.map(trip -> routeTable.byRouteId(trip.routeId()))

0 commit comments

Comments
 (0)