Skip to content

Commit

Permalink
Merge pull request #368 from HSLdevcom/develop
Browse files Browse the repository at this point in the history
Setting vehiclecounts.doorcounts as mandatory value
  • Loading branch information
thjarvin authored Dec 18, 2024
2 parents dcf03e6 + 0a546d9 commit 8cd6904
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>fi.hsl</groupId>
<artifactId>transitdata-common</artifactId>
<version>2.0.1</version>
<version>2.0.2</version>
<packaging>jar</packaging>
<name>Common utilities for Transitdata projects</name>
<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ public Optional<PassengerCount.Payload> parsePayload(@NotNull ApcJson json) {
}
vehicleBuilder.addDoorCounts(doorCountBuilder);
}
} else {
log.warn("Field 'doorcounts' is null for vehicle {}/{}", payload.oper, payload.veh);
return Optional.empty();
}

payloadBuilder.setVehicleCounts(vehicleBuilder);
Expand Down

0 comments on commit 8cd6904

Please sign in to comment.