Skip to content

Commit

Permalink
Fix a minor bug in StopRepositoryImpl.
Browse files Browse the repository at this point in the history
  • Loading branch information
jarkkoka committed Sep 6, 2023
1 parent 31199fc commit aeee626
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion spring-boot/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<groupId>fi.hsl.jore4</groupId>
<artifactId>map-matching-backend</artifactId>
<packaging>jar</packaging>
<version>1.1.2</version>
<version>1.1.3</version>
<name>Jore4 Map Matching</name>
<description>Jore4 map matching server</description>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,12 @@ class StopRepositoryImpl @Autowired constructor(val jdbcTemplate: NamedParameter
val stopSideOnLink: LinkSide =
when (rs.getBoolean("is_on_direction_of_link_forward_traversal")) {
true -> LinkSide.RIGHT
false -> LinkSide.LEFT
null -> LinkSide.BOTH
false -> {
if (rs.wasNull()) // only rarely in the real world
LinkSide.BOTH
else
LinkSide.LEFT
}
}

val infrastructureLinkId = rs.getLong("infrastructure_link_id")
Expand Down

0 comments on commit aeee626

Please sign in to comment.